cvgather {cvsem} | R Documentation |
Gather lavan
model objects into a list
Description
Gather lavaan
model objects to be compared via CV. Function returns a named list.
Usage
cvgather(...)
Arguments
... |
Names of |
Value
Named list
Author(s)
philippe
Examples
example_data <- lavaan::HolzingerSwineford1939
colnames(example_data) <- c("id", "sex", "ageyr", "agemo", 'school', "grade",
"visualPerception", "cubes", "lozenges", "comprehension",
"sentenceCompletion", "wordMeaning", "speededAddition",
"speededCounting", "speededDiscrimination")
model1 <- 'comprehension ~ sentenceCompletion + wordMeaning'
model2 <- 'comprehension ~ wordMeaning
sentenceCompletion ~ wordMeaning
comprehension ~~ 0.5*wordMeaning'
model_list <- cvgather(model1, model2)
[Package cvsem version 1.0.0 Index]