Open albertostefanelli opened 2 years ago
Could you try to install the version I just pushed to this repository?
with 65bdebc1 still returns NULL. no other errors are given
And if you run a model manually using MplusAutomation, does it work?
yes, it does work but need to specify Mplus_command = "/Applications/Mplus_mac/mplus"
This is hard for me to debug, because it's related to your situation which requires Mplus_command. Looking at the code, it should get passed down to mplusModeler
ofc I understand. I was trying to figure it if any argument is passed and when I set hashfilename = FALSE, estimate_mplus returns When hashfilename = FALSE, writeData cannot be 'ifmissing', setting to 'always'.
So, arguments are passed to MplusAutomation but the output is not retrieved. could it be the location of the .out file ?
That's possible; could you try specifying an absolute and a relative file path to modelout =
?
specifying themodelout = "my/working/path/model.inp"
I am able to generate the syntax. in the syntax the data argument is "model.dat" but this is not generated. Any idea ?
And if you additionally specify the dataout?
specifying dataout with writeData = 'always', hashfilename = FALSE does not return any error and only the syntax.
You mean, it works but the resulting object does not contain a $results
element?
sorry I did not explain this properly.
estimate_mplus(modelout = "path/model.inp",
dataout = "path/model.dat",
writeData = 'always',
Mplus_command = "/Applications/Mplus_mac/mplus",
hashfilename = FALSE)
returns only the syntax (model.inp) but not the .dat in the specified path. And so the function returns NULL
Dear Alberto, I'm going to leave this issue open in case anyone wants to address it, but I won't be actively working on it because I don't know how to reproduce your use case on a Windows pc with Mplus on the path.
As per title, estimate_mplus() does not work. This might be related to the fact that Mplus_command is not passed to mplusModeler. Also mplusAvailable() does not return anything. estimate_lavaan and estimate_mx do work.
Note that on my case the exe of mplus is not in the global path.