compute_alpha: Compute coefficient alpha

View source: R/itemize_scales.R

compute_alphaR Documentation

Compute coefficient alpha

Description

Compute coefficient alpha

Usage

compute_alpha(sigma = NULL, data = NULL, standardized = FALSE, ...)

Arguments

sigma

Covariance matrix (must be supplied if data argument is not supplied)

data

Data matrix or data frame (must be supplied if sigma argument is not supplied)

standardized

Logical scalar determining whether alpha should be computed from an unstandardized covariance matrix (TRUE) or a correlation matrix (FALSE).

...

Additional arguments to be passed to cov() function.

Value

Coefficient alpha

Examples

compute_alpha(sigma = reshape_vec2mat(cov = .4, order = 10))

jadahlke/psychmeta documentation built on Feb. 11, 2024, 9:15 p.m.