Description Usage Arguments Value
View source: R/reliabilities.R
Calculate the reliability of a prediction in a linear factor model. The prediction is on the form S = AZ + Beps', where eps' is a new error and Z are latent variables.
1 | reliability(object, type = "linear", A = 1, B = 0, iota = NULL)
|
object |
Either a lavaan object or a list containing the factor loadings and the residual error covariance matrix. |
type |
Choose '"linear"“ for the optimal linear weights (recommended) or '"sumscore'" for the optimal sumscore weights. |
A |
The matrix A in S = AZ + Beps. |
B |
The matrix B in S = AZ + Beps. Defaults to |
iota |
If type is '"sumscore"' and iota is supplied, this iota is used instead of the optimal iota. |
A list containing the matrix of optimal weights, the R^2 reliability, the inflation rate reliability and ioata (if applicable.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.