write_IPV_syntax {IPV}R 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


[Package IPV version 1.0.0 Index]