.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 = |
use |
character vector of length 1 specifying how missing data should be
handled when computing covariances. See |
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")