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]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.