Troubles with OpenMx example

1 reply [Last post]
Psychometrics's picture
Offline
Joined: 01/10/2010

Hi,

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

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!

mhunter's picture
Offline
Joined: 07/31/2009
*Source* vs *Binary* Demos

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-m...

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!