Learn R Programming

mcr (version 1.2.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)

Arguments

Xboot

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

alpha

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

xhat

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

npoints

number of points used for the regression analysis.

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\).

References

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