Troubles with OpenMx example

Posted on
No user picture. Psychometrics Joined: 01/10/2010

Hi,

I have tried to run the code as documented here:
http://openmx.psyc.virginia.edu/svn/trunk/demo/UnivariateTwinAnalysis_MatrixRaw.R

Don't know why but I always get the following error message:

Error in mxModel("twinACE", mzModel, dzModel, mxAlgebra(expression = MZ.objective + :
could not find function "mxFitFunctionAlgebra"

Any idea what is wrong here? Many thanks in advance!

Replied on Tue, 08/13/2013 - 13:08
Picture of user. mhunter Joined: Jul 31, 2009

I think you probably have the binary version of of OpenMx installed, but you're trying to run the source version of the demo. Most of the time this would be fine. However, currently the source and binary versions have some important differences related to new features.

See the following for more information on the new features: http://openmx.psyc.virginia.edu/2012/11/new-feature-trunk-mxexpect-and-mxfit-functions

You should be able to run the following.

require(OpenMx)
demo("UnivariateTwinAnalysis_MatrixRaw", package="OpenMx")

This should work no matter what version of OpenMx you are running.

Hope this clarifies things!