Skip to content

Commit

Permalink
minor changes to formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed Jan 8, 2024
1 parent 623b90d commit f98d0d5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions inst/bootbayes.m
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ function print_output (stats, nboot, prob, prior, p, L, method, intercept_only)
%! heights = [183, 192, 182, 183, 177, 185, 188, 188, 182, 185].';
%!
%! % 95% credible interval for the mean
%! bootbayes(heights);
%! bootbayes (heights);
%!
%! % Please be patient, the calculations will be completed soon...

Expand All @@ -482,7 +482,7 @@ function print_output (stats, nboot, prob, prior, p, L, method, intercept_only)
%! 183.0,192.0,182.0,183.0,177.0,185.0,188.0,188.0,182.0,185.0]';
%!
%! % 95% credible interval for the regression coefficents
%! bootbayes(y,X);
%! bootbayes (y, X);
%!
%! % Please be patient, the calculations will be completed soon...

Expand Down
8 changes: 4 additions & 4 deletions inst/bootmode.m
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,12 @@
%! 0.115;0.115;0.117;0.119;0.119;0.119;0.119;0.120;0.120;0.120;0.121; ...
%! 0.122;0.122;0.123;0.123;0.125;0.125;0.128; 0.129;0.129;0.129;0.130;0.131];
%!
%! [H1, P1, CRITVAL1] = bootmode(x,1,2000);
%! [H1, P1, CRITVAL1] = bootmode (x,1,2000);
%!
%! % Repeat function call systematically increasing the number of modes (M) by
%! % 1, until the null hypothesis is accepted (i.e. H0 = 0)
%!
%! [H2, P2, CRITVAL2] = bootmode(x,2,2000);
%! [H2, P2, CRITVAL2] = bootmode (x,2,2000);
%!
%! sprintf ('Summary of results:\n')
%! sprintf (cat (2, 'H1 is %u with p = %.3g so reject the null hypothesis', ...
Expand Down Expand Up @@ -468,7 +468,7 @@
%! 0.115;0.115;0.117;0.119;0.119;0.119;0.119;0.120;0.120;0.120;0.121; ...
%! 0.122;0.122;0.123;0.123;0.125;0.125;0.128; 0.129;0.129;0.129;0.130;0.131];
%!
%! [H, P, CRITVAL] = bootmode(x,1,2000,'Gaussian');
%! [H, P, CRITVAL] = bootmode (x,1,2000,'Gaussian');
%! assert (H, true);
%! [H, P, CRITVAL] = bootmode(x,2,2000,'Gaussian');
%! [H, P, CRITVAL] = bootmode (x,2,2000,'Gaussian');
%! assert (H, false);
4 changes: 2 additions & 2 deletions inst/bootwild.m
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ function print_output (stats, nboot, alpha, p, L, method)
%! heights = [183, 192, 182, 183, 177, 185, 188, 188, 182, 185].';
%!
%! % Test statistics and p-values (H0 = 0)
%! bootwild(heights);
%! bootwild (heights);
%!
%! % Please be patient, the calculations will be completed soon...

Expand All @@ -518,7 +518,7 @@ function print_output (stats, nboot, alpha, p, L, method)
%! 183.0,192.0,182.0,183.0,177.0,185.0,188.0,188.0,182.0,185.0]';
%!
%! % Compute test statistics and p-values
%! bootwild(y,X);
%! bootwild (y, X);
%!
%! % Please be patient, the calculations will be completed soon...

Expand Down

0 comments on commit f98d0d5

Please sign in to comment.