This is a function to automatically detect the variables used in an Mplus model object.
detectVariables(object, quiet = TRUE)
object | An Mplus model object from |
---|---|
quiet | optional. If |
A vector of variables from the R dataset to use.
Joshua F. Wiley <jwiley.psych@gmail.com>
#> NULLMplusAutomation:::detectVariables(example1)#> [1] "mpg" "wt"#> [1] "mpg" "wt"example3 <- update(example2, MODEL = ~ . + "mpg ON qsec; wt WITH qsec;", autov = TRUE) example3$usevariables#> [1] "mpg" "wt"