You are here

Troubles with OpenMx example

2 posts / 0 new
Last post
Psychometrics's picture
Offline
Joined: 01/10/2010 - 14:51
Troubles with OpenMx example

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!

mhunter's picture
Offline
Joined: 07/31/2009 - 15:26
*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-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!

Log in or register to post comments