Grokbase Groups R r-help June 2016
FAQ
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]]

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupr-help @
categoriesr
postedJun 16, '16 at 12:04p
activeJun 16, '16 at 12:04p
posts1
users1
websiter-project.org
irc#r

1 user in discussion

Birhanu Worku: 1 post

People

Translate

site design / logo © 2017 Grokbase