pim: A Function That Fits a Pseudo-Indicator Model (PIM) to a Set...

Description Usage Arguments Value Examples

View source: R/pim.R

Description

This function fits a PIM (Rose et al., 2019), to a set of indicators. Follows an adapted version of the coding approach provided by McNeish and Wolf (2020, https://osf.io/7ea3k/)

Usage

1
pim(df, model = "sum")

Arguments

df

input data frame consisting of variables in the measurement model

model

input character for whether measurement model to reproduce sum score (default) or average score is desired

Value

a fitted lavaan object

Examples

1
pim.hs <- pim(df, model = "average")

jsakaluk/psyscores documentation built on Dec. 16, 2021, 6:50 p.m.