reliability: Decision Theoretic Reliabilities and Optimal Weights

Description Usage Arguments Value

View source: R/reliabilities.R

Description

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.

Usage

1
reliability(object, type = "linear", A = 1, B = 0, iota = NULL)

Arguments

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 0.

iota

If type is '"sumscore"' and iota is supplied, this iota is used instead of the optimal iota.

Value

A list containing the matrix of optimal weights, the R^2 reliability, the inflation rate reliability and ioata (if applicable.)


JonasMoss/reliable documentation built on Nov. 18, 2019, 5:34 a.m.