Skip to content

Commit

Permalink
minor correction to name of outcome variable in PRED_ERR argument
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed Jan 7, 2024
1 parent b9f08d3 commit 0778917
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions inst/bootlm.m
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,7 @@
% Estimate prediction errors
PRED_ERR = booterr (Y, X, cat (1, 1, df), n, DEP, NBOOT, ALPHA, ...
SEED, ISOCTAVE, PARALLEL);
PRED_ERR.MODEL = cat (1, {'Y ~ 1'}, formula);
PRED_ERR.MODEL = cat (1, {sprintf('%s ~ 1',Y_name)}, formula);
end
case {'bayes', 'bayesian'}
[STATS, BOOTSTAT] = bootbayes (Y, X, DEP, NBOOT, ...
Expand Down Expand Up @@ -2409,7 +2409,7 @@

%!demo
%!
%! ## Stepwise regression
%! ## Step-wise regression
%!
%! sr = [11.43;12.07;13.17;05.75;12.88;08.79;00.60;11.90; ...
%! 04.98;10.78;16.85;03.59;11.24;12.64;12.55;10.67; ...
Expand Down Expand Up @@ -2463,11 +2463,11 @@
%! ## obtained for PE, PRESS and RSQ_pred using cross-validation:
%! ##
%! ## MODEL PE-CV PRESS-CV RSQ_pred-CV
%! ## Y ~ 1 20.48 1024.186 -0.041
%! ## Y ~ 1 + pop15 16.88 843.910 +0.142
%! ## Y ~ 1 + pop15 + pop75 16.62 830.879 +0.155
%! ## Y ~ 1 + pop15 + pop75 + dpi 16.54 827.168 +0.159
%! ## Y ~ 1 + pop15 + pop75 + dpi + ddpi 15.98 798.939 +0.188
%! ## sr ~ 1 20.48 1024.186 -0.041
%! ## sr ~ 1 + pop15 16.88 843.910 +0.142
%! ## sr ~ 1 + pop15 + pop75 16.62 830.879 +0.155
%! ## sr ~ 1 + pop15 + pop75 + dpi 16.54 827.168 +0.159
%! ## sr ~ 1 + pop15 + pop75 + dpi + ddpi 15.98 798.939 +0.188

%!test
%!
Expand Down

0 comments on commit 0778917

Please sign in to comment.