Hi everyone
why this code is not running ?
here is it;
library(MplusAutomation)
res <- mplusModeler(
mplusObject(
MODEL = "mpg ON wt hp; wt WITH hp;", rdata = mtcars),
"mtcars.dat", run = 1L)
summary(res)
note that mtcars is the data in r
The out put;
"No R variables to use specified.
Has anyone successfully linked Mplus and R and have code on how to do it? It
would be great to use R to simulate datasets and then ship to Mplus for SEM
analysis. I know one researcher who does this quite regularly but I cant
get ahold of him right now.
Sincerely,
Jeff Miller
2 matches
Mail list logo