prods: A Function Creates Product Indicators Needed to Script a...

Description Usage Arguments Value Examples

View source: R/prods.R

Description

This function uses semTools to create the product-terms needed to specify the latent interaction needed to test non-uniform DIF in a MIMIC model

Usage

1
prods(df, covname, match.op = FALSE, doubleMC.op = T)

Arguments

df

input data frame consisting of variables in the measurement model

covname

character input of name of covariate in data frame

match.op

supplies indprod (default to FALSE)

doubleMC.op

supplies inprod (default to TRUE)

Value

a tibble of the original data frame, covariate, and product indicators

Examples

1
df2 <- prods(df, covname = "age")

jsakaluk/scripty documentation built on Dec. 31, 2021, 9:17 p.m.