.gtheory {quest}R Documentation

Bootstrap Function for gtheory() Function

Description

.gtheory is the function used by the boot function within the gtheory function. It is primarily created to increase the computational efficiency of bootstrap confidence intervals within the gtheory function by doing only the minimal computations needed to compute the generalizability theory coefficient.

Usage

.gtheory(dat, i, cross.vrb)

Arguments

dat

data.frame with only the variables/items you wish to include in the generalizability theory coefficient and no other variables/items.

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.

cross.vrb

logical vector of length 1 specifying whether the variables/items should be crossed when computing the generalizability theory coefficient. If TRUE, then only the covariance structure of the variables/items will be incorperated into the estimate of reliability. If FALSE, then the mean structure of the variables/items will be incorperated.

Value

double vector of length 1 providing the generalizability theory coefficient.

See Also

.gtheorys gtheory

Examples

.gtheory(dat = attitude,
   i = sample(x = 1:nrow(attitude), size = nrow(attitude), replace = TRUE),
   cross.vrb = TRUE)
.gtheory(dat = attitude,
   i = sample(x = 1:nrow(attitude), size = nrow(attitude), replace = TRUE),
   cross.vrb = FALSE)

[Package quest version 0.2.0 Index]