[R] Mplus in R
Birhanu Worku
biree2016 at gmail.com
Thu Jun 16 14:04:25 CEST 2016
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.
Selected automatically as any variable name that occurs in the MODEL or
DEFINE section.
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.
Target: mtcars.out
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"
Thank you
[[alternative HTML version deleted]]
More information about the R-help
mailing list