why this code is not running ?
here is it;
res <- mplusModeler(
MODEL = "mpg ON wt hp; wt WITH hp;", rdata = mtcars),
"mtcars.dat", run = 1L)
note that mtcars is the data in r
The out put;
"No R variables to use specified.
Selected automatically as any variable name that occurs in the MODEL or
Wrote model to: mtcars.inp
Wrote data to: mtcars.dat
Running model: mtcars.inp
System command: C:\Windows\system32\cmd.exe /c cd "C:\Users\Bira\Documents"
&& "Mplus" "mtcars.inp"
Error in getOutFileList(target, recursive, filefilter) :
Specified target does not exist.
In addition: Warning messages:
1: In prepareMplusData(df = object$rdata[i, object$usevariables], filename
= dataout, :
The file ?mtcars.dat? currently exists and will be overwritten
2: running command 'C:\Windows\system32\cmd.exe /c cd
"C:\Users\Bira\Documents" && "Mplus" "mtcars.inp"' had status 1
summary(res)Error in summary(res) : object 'res' not found"
[[alternative HTML version deleted]]