Learn R Programming

psychmeta (version 2.7.0)

compute_alpha: Compute coefficient alpha

Description

Compute coefficient alpha

Usage

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

Value

Coefficient alpha

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.

Examples

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

Run the code above in your browser using DataLab