Learn R Programming

missalpha (version 0.2.0)

cronbach_alpha_enum: Compute Exact Bounds of Cronbach's Alpha via Enumeration

Description

This function computes the minimum and maximum possible values of Cronbach's alpha by enumerating all possible values for unknown entries in the score matrix.

Usage

cronbach_alpha_enum(scores_mat, score_max)

Value

A numeric vector of length 2, where the first element is the minimum Cronbach's alpha and the second element is the maximum Cronbach's alpha.

Arguments

scores_mat

A matrix where rows represent individuals and columns represent test items. It contains the performance of individuals on different test items, with NA for missing values.

score_max

An integer specifying the largest possible score for any test item.

Details

This function works by enumerating all possible combinations of values for missing entries (represented by NA) in the scores_mat. It systematically explores all combinations of missing values from 0 to score_max using the expand.grid function. For each combination, it calculates Cronbach's alpha using the compute_cronbach_alpha function and keeps track of the minimum and maximum alpha values encountered.

The enumeration ensures that the function finds the exact minimum and maximum possible values of Cronbach's alpha given the possible missing score combinations. However, due to the exhaustive nature of enumeration, this function may become computationally expensive for large datasets or a high number of missing values.

See Also

cronbach_alpha_rough