bootstrapPrecisionMeasures: Bootstrapped measures of precision

bootstrapPrecisionMeasuresR Documentation

Bootstrapped measures of precision

Description

superb also comes with a few built-in measures of precisions that uses bootstrap. More can be added based on users needs. All bootstrapSE.fct() functions produces an interval width; all bootstrapPI.fct() produces the lower and upper limits of an interval. These estimates are based on 5,000 sub-samples by default. Change this default withoptions("superb.bootstrapIter" = number ). See \insertCiteet94;textualsuperb for a comprehensive introduction. The bootstrap estimates are called PI which stands for Precision intervals. This is to denote that they estimate the sampling distribution, not the predictive distribution on which all confidence intervals are based \insertCiterpw19,pl10,l99superb.

Usage

bootstrapSE.mean(x)

bootstrapPI.mean(x, gamma)

bootstrapSE.median(x)

bootstrapPI.median(x, gamma)

bootstrapSE.hmean(x)

bootstrapPI.hmean(x, gamma)

bootstrapSE.gmean(x)

bootstrapPI.gmean(x, gamma)

bootstrapSE.var(x)

bootstrapPI.var(x, gamma)

bootstrapSE.sd(x)

bootstrapPI.sd(x, gamma)

Arguments

x

a vector of numbers, the sample data (mandatory);

gamma

a confidence level for PI (default 0.95).

Value

a measure of precision (SE) or an interval of precision (PI).

References

\insertAllCited

Examples

# the confidence interval of the mean for default 95% and 90% confidence level
bootstrapPI.mean( c(1,2,3) )
bootstrapPI.mean( c(1,2,3), gamma = 0.90)

# Standard errors for standard deviation or variance
bootstrapSE.sd( c(1,2,3) )
bootstrapSE.var( c(1,2,3) )


superb documentation built on Jan. 23, 2023, 5:44 p.m.