Write lavaan model syntax of IPV models on the given dataset
write_IPV_syntax(dat, name)
list of character; lavaan model syntax
data frame; correctly formatted raw data
character; name of the overall construct or test
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).