Skip to content

Commit ed880f9

Browse files
committed
made minor changes and corrections to some function documentation
1 parent 2e90a8f commit ed880f9

File tree

5 files changed

+35
-33
lines changed

5 files changed

+35
-33
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: statistics-resampling
2-
version: 5.5.13
3-
date: 2024-05-17
2+
version: 5.5.14
3+
date: 2024-05-19
44
author: Andrew Penn <andy.c.penn@gmail.com>
55
maintainer: Andrew Penn <andy.c.penn@gmail.com>
66
title: A statistics package with a variety of resampling tools

inst/bootint.m

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
% Computes simple percentile confidence interval(s) from a vector (or row-major
2-
% matrix) of bootstrap statistics.
1+
% Computes simple percentile confidence interval(s) directly from a vector (or
2+
% row-major matrix) of bootstrap statistics.
33
%
4-
% -- Function File: CI = bootint (Y)
5-
% -- Function File: CI = bootint (Y, PROB)
4+
% -- Function File: CI = bootint (BOOTSTAT)
5+
% -- Function File: CI = bootint (BOOTSTAT, PROB)
66
%
7-
% 'CI = bootint (Y)' computes 95% percentile confidence intervals from
8-
% the vector, or rows* of the matrix, Y, where Y contains bootstrap
9-
% statistics, such as those generated using the `bootstrp` function.
10-
% Depending on the application, bootstrap confidence intervals with better
11-
% coverage and accuracy can be computed using the various dedicated
12-
% bootstrap functions from the statistics-resampling package.
7+
% 'CI = bootint (BOOTSTAT)' computes 95% percentile confidence intervals
8+
% directly from the vector, or rows* of the matrix in BOOTSTAT, where
9+
% BOOTSTAT contains bootstrap statistics such as those generated using
10+
% the `bootstrp` function. Depending on the application, bootstrap
11+
% confidence intervals with better coverage and accuracy can be computed
12+
% using the various dedicated bootstrap functions from the statistics-
13+
% resampling package.
1314
%
1415
% * The matrix should have dimensions P * NBOOT, where P corresponds to
1516
% the number of parameter estimates and NBOOT corresponds to the number
1617
% of bootstrap samples.
1718
%
18-
% 'CI = bootint (Y, PROB)' returns confidence intervals, where PROB is
19-
% numeric and sets the lower and upper bounds of the confidence interval(s).
20-
% The value(s) of PROB must be between 0 and 1. PROB can either be:
19+
% 'CI = bootint (BOOTSTAT, PROB)' returns confidence intervals, where
20+
% PROB is numeric and sets the lower and upper bounds of the confidence
21+
% interval(s). The value(s) of PROB must be between 0 and 1. PROB can
22+
% either be:
2123
% <> scalar: To set the central mass of normal confidence intervals
2224
% to 100*PROB%
2325
% <> vector: A pair of probabilities defining the lower and upper

inst/bootknife.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@
790790
ci(j, :) = parsubfun.kdeinv (l(j, :), bootstat(j, :), ...
791791
se(j) * sqrt (1 / (n - K)), 1 - 1 / (n - K));
792792
else
793-
error ('Invoke linear interpolation method.')
793+
error ('bootknife: Invoke linear interpolation method.')
794794
end
795795
catch
796796
% Linear interpolation (legacy) when LOO is false and for corner cases

inst/credint.m

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
% Computes credible interval(s) from a vector (or row-major matrix) of the
2-
% posterior(s) obtained by bayesian bootstrap.
1+
% Computes credible interval(s) directly from a vector (or row-major matrix) of
2+
% the posterior(s) obtained by bayesian bootstrap.
33
%
4-
% -- Function File: CI = credint (Y)
5-
% -- Function File: CI = credint (Y, PROB)
4+
% -- Function File: CI = credint (BOOTSTAT)
5+
% -- Function File: CI = credint (BOOTSTAT, PROB)
66
%
7-
% 'CI = credint (Y)' computes 95% credible intervals from the vector, or
8-
% rows* of the matrix, Y, where Y contains posterior (or Bayesian bootstrap)
9-
% statistics, such as those generated using the `bootbayes` function. The
10-
% credible intervals are shortest probability intervals (SPI), which
11-
% represent a more computationally stable version of the highest posterior
12-
% density interval [1,2].
7+
% 'CI = credint (BOOTSTAT)' computes 95% credible intervals directly from
8+
% the vector, or rows* of the matrix in BOOTSTAT, where BOOTSTAT contains
9+
% posterior (or Bayesian bootstrap) statistics, such as those generated
10+
% using the `bootbayes` function (or the `bootlm` function with the method
11+
% set to 'bayesian'). The credible intervals are shortest probability
12+
% intervals (SPI), which represent a more computationally stable version
13+
% of the highest posterior density interval [1,2].
1314
%
1415
% * The matrix should have dimensions P * NBOOT, where P corresponds to
1516
% the number of parameter estimates and NBOOT corresponds to the number
1617
% of posterior (or Bayesian bootstrap) samples.
1718
%
18-
% 'CI = credint (Y, PROB)' returns credible intervals, where PROB is numeric
19-
% and sets the lower and upper bounds of the credible interval(s). The
20-
% value(s) of PROB must be between 0 and 1. PROB can either be:
19+
% 'CI = credint (BOOTSTAT, PROB)' returns credible intervals, where PROB is
20+
% numeric and sets the lower and upper bounds of the credible interval(s).
21+
% The value(s) of PROB must be between 0 and 1. PROB can either be:
2122
% <> scalar: To set the central mass of shortest probability intervals
2223
% to 100*PROB%
2324
% <> vector: A pair of probabilities defining the lower and upper

inst/smoothmedian.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
% matrix, compute the univariate smoothed median value for each column and
99
% return them in a row vector. If the optional argument DIM is given,
1010
% operate along this dimension. Arrays of more than two dimensions are not
11-
% NaN values currently supported. The MEX file versions of this function
12-
% ignore (omit) whereas the m-file includes NaN in it's calculations. Use
13-
% the 'which' command to establish which version of the function is being
14-
% used.
11+
% currently supported. The MEX file versions of this function ignore (omit)
12+
% NaN values whereas the m-file includes NaN in it's calculations. Use the
13+
% 'which' command to establish which version of the function is being used.
1514
%
1615
% The smoothed median is a slightly smoothed version of the ordinary median
1716
% and is an M-estimator that is both robust and efficient:

0 commit comments

Comments
 (0)