.cronbach {quest}R Documentation

Bootstrap Function for cronbach() Function

Description

.cronbach is the function used by the boot function within the cronbach function. It is primarily created to increase the computational efficiency of bootstrap confidence intervals within the cronbach function by doing only the minimal computations needed to compute cronbach's alpha.

Usage

.cronbach(dat, i, use)

Arguments

dat

data.frame with only the items you wish to include in the cronbach's alpha computation and no other variables.

i

integer vector of length = nrow(dat) specifying which rows should be included in the computation. When used by the boot::boot function this argument will change with every new bootstrapped resample.

use

character vector of length 1 specifying how missing data should be handled when computing covariances. See cov for details.

Value

double vector of length 1 providing cronbach's alpha

Examples

.cronbach(dat = attitude,
   i = sample(x = 1:nrow(attitude), size = nrow(attitude), replace = TRUE), use = "pairwise")

[Package quest version 0.2.0 Index]