Learn R Programming

mcr (version 1.3.3.1)

mc.calc.Student: Student Method for Calculation of Resampling Confidence Intervals

Description

Calculate bootstrap confidence intervals for intercept, slope or bias given a vector of bootstrap point estimates.

Usage

mc.calc.Student(Xboot, xhat, alpha, npoints)

Value

a list with elements

est

the point estimate xhat

se

standard deviation computed from bootstrap point estimates Xboot

CI

Confidence interval for point estimate xhat, calculated as \(xhat +/- qt(1-alpha,n-2)*sd\).

Arguments

Xboot

vector of point estimates for each bootstrap sample. The i-th element contains the point estimate of the i-th bootstrap sample.

xhat

global point estimate for which the confidence interval shall be computed.

alpha

numeric value specifying the 100(1-alpha)% confidence level for the confidence interval (Default is 0.05).

npoints

number of points used for the regression analysis.

References

Carpenter, J., Bithell, J. (2000) Bootstrap confidence intervals: when, which, what? A practical guide for medical statisticians. Stat Med, 19 (9), 1141--1164.