Hi all,
I'm trying to run line-by-line through the tutorial under Documentation -> Quick-Start tutorial (1st page). The "More in-depth Example" does not work. (by the way, it would be helpful to have the tutorial be self-contained (i.e., no need for external data) so that anyone can actually run it. So simulation of twin data would be much more useful than calling up some old 'myTwinData.txt' file that can't be downloaded).
Anyway, I simulated my own twin data and tried running through the example. At the twinSatModel step, I run into problems:
> twinSatModel <- mxModel("twinSat",
+ mxModel("MZ", .... ),
+ mxModel("DZ", .... ),
+ mxAlgebra(MZ.objective + DZ.objective, name="twin"),
+ mxAlgebraObjective("twin"))
Error in mxModel("MZ", ....) : object '....' not found
I can take away the "...." and it runs but it chokes on the 2nd line after this:
> twinSatModel <- mxModel("twinSat",
+ mxModel("MZ" ),
+ mxModel("DZ"),
+ mxAlgebra(MZ.objective + DZ.objective, name="twin"),
+ mxAlgebraObjective("twin"))
> twinSatFit <- mxModel(twinSatModel)
> ExpMeanMZ <- mxEval(MZ.expMeanMZ, twinSatFit)
Error in eval(expr, envir, enclos) : object 'MZ.expMeanMZ' not found
Also, should this line be using the mxModel command or the mxRun command?:
> twinSatFit <- mxModel(twinSatModel)
In general, a tutorial is a great idea, but I've encountered several errors in the one posted in addition to those above, which is making progress in learning quite laborious. Of course, this is to be expected in a pre-beta version of software, but would it be possible for someone to run through the code in the tutorial as written and make sure that it works?
Help with the above errors (or just a simple ACE code emailed to me) would be very helpful! Thanks!
Matt