write_IPV_syntax: Write IPV syntax

View source: R/ipv_est.R

write_IPV_syntaxR Documentation

Write IPV syntax

Description

Write lavaan model syntax of IPV models on the given dataset

Usage

write_IPV_syntax(dat, name)

Arguments

dat

data frame; correctly formatted raw data

name

character; name of the overall construct or test

Details

Variable names in dat have to conform to the pattern "test_facet_item". If there is only one test in the data, the pattern is "facet_item". For tests without facets in a larger dataset also comprising tests with items, the pattern is "test_item". Variable names have to be unique at the level of the test AND the facet. Item names have to be unique at the level of the test (not only at the level of the facet).

Value

list of character; lavaan model syntax


IPV documentation built on Sept. 30, 2022, 5:08 p.m.