Skip to content

Commit

Permalink
Update credint.m
Browse files Browse the repository at this point in the history
  • Loading branch information
acp29 committed May 20, 2024
1 parent 162a876 commit eb98a36
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions inst/credint.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@
%!demo
%!
%! % Input univariate dataset
%! heights = [183, 192, 182, 183, 177, 185, 188, 188, 182, 185].';
%! y = [5.18 2.71 2.69 6.09 4.23 10.7 3.71 13.13 19.28 6.61].';
%!
%! % 95% credible interval for the mean
%! [stats, bootstat] = bootbayes (heights);
%! [stats, bootstat] = bootbayes (y);
%! CI = credint (bootstat,0.95) % 95% shortest probability interval
%! CI = credint (bootstat,[0.025,0.975]) % 95% equal-tailed interval
%!
Expand All @@ -160,10 +160,10 @@
%!test
%!
%! % Input univariate dataset
%! heights = [183, 192, 182, 183, 177, 185, 188, 188, 182, 185].';
%! y = [5.18 2.71 2.69 6.09 4.23 10.7 3.71 13.13 19.28 6.61].';
%!
%! % 95% credible interval for the mean
%! [stats, bootstat] = bootbayes (heights);
%! [stats, bootstat] = bootbayes (y);
%!
%! % 95% credible interval for the mean
%! CI = credint (bootstat,0.95); % 95% shortest probability interval
Expand Down

0 comments on commit eb98a36

Please sign in to comment.