Skip to contents

Maps the invariance type strings used by pinSearch() to the corresponding values of the op column of a lavaan parameter table (lavaan::parTable()): "loadings" maps to "=~", "intercepts" to "~1", "thresholds" to "|", and both "residuals" and "residual.covariances" to "~~".

Usage

type2op(type)

Arguments

type

A character string indicating the invariance type. Must be one of "loadings", "intercepts", "thresholds", "residuals", or "residual.covariances".

Value

A character string, the corresponding lavaan operator.

Examples

type2op("loadings")
#> [1] "=~"