Skip to content

Commit 8d926f6

Browse files
committed
bootridge: function name added to the output structure
1 parent b04d7dc commit 8d926f6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

inst/bootridge.m

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,7 @@
973973
end
974974

975975
% Pack results
976+
S.function = 'bootridge';
976977
if (c < 1); S.coefficient = Beta; else; S.estimate = mu; end;
977978
S.CI_lower = CI_lower;
978979
S.CI_upper = CI_upper;
@@ -1451,9 +1452,11 @@
14511452
%! % tasks can predict performance on some measures of aptitude and achievement.
14521453
%!
14531454
%! % Load the dataset
1454-
%! [group, SES, SAT, PPVT, Raven, n, s, ns, na, ss] = textread ...
1455-
%! ('rohwer_data.csv', '%f %s %f %f %f %f %f %f %f %f', ...
1456-
%! 'Delimiter', ',', 'HeaderLines', 1);
1455+
%! fid = fopen ('rohwer_data.csv', 'r', 'l');
1456+
%! dat = textscan ...
1457+
%! (fid, '%f %s %f %f %f %f %f %f %f %f', ...
1458+
%! 'Delimiter', ',', 'HeaderLines', 1);
1459+
%! [group, SES, SAT, PPVT, Raven, n, s, ns, na, ss] = dat{:};
14571460
%! % Define model terms - all main effects and two-way interactions with SES
14581461
%! mdl = [1 0 0 0 0 0; ...
14591462
%! 0 1 0 0 0 0; ...

0 commit comments

Comments
 (0)