Learn R Programming

coefficientalpha (version 0.5)

bootstrap: Bootstrap se and CI for alpha and omega

Description

Bootstrap se and CI for alpha and omega.

Usage

bootstrap(y, type="omega", alpha=.95, nboot=1000, ci="bc", plot=FALSE, 
varphi=0, complete=FALSE, auxiliary=NULL, silent=FALSE)

Arguments

y

Data

type

omega: coefficient omega. Otherwise, coefficient alpha.

alpha

Confidence level.

nboot

Number of bootstrap samples to use

ci

bc: Bias-corrected CI. Otherwise, the percentile CI is used.

plot

Whether to plot the bootstrap density.

varphi

Downweight rate

complete

Calculate alpha/omega only based on complete data (listwise deletion)

auxiliary

Provide a matrix or data frame of auxiliary variables for missing data analysis.

silent

Whether to print information of the analysis.

References

Zhang, Z. & Yuan, K.-H. (2014). Robust Coefficients Alpha and Omega and their Confidence Intervals: Methods and Software.

Examples

Run this code
# NOT RUN {
data(example)

boot.test<-bootstrap(example, type='alpha', nboot=10, plot=TRUE)
# }

Run the code above in your browser using DataLab