Compute a bootstrap, .95 confidence interval for any measure of location

Share:

Description

Compute a bootstrap, .95 confidence interval for the measure of location corresponding to the argument est. By default, a one-step M-estimator of location based on Huber's Psi is used. The default number of bootstrap samples is nboot=2000

Usage

1
onesampb(x, est = onestep, alpha = 0.05, nboot = 2000, SEED = TRUE, nv=0, ...)

Arguments

x

A vector

est

A function that directly returns a measure of location; default = one-step M-estimator of location based on Huber's Psi

alpha

Alpha value of the CI

nboot

Number of bootstrap samples

SEED

Set seed of random number generator so that results can be replicated

nv

null value when computing a p-value

...

Additional arguments for the estimator functio.