OpenMx Help

Posted on
No user picture. Williamhamby Joined: 10/19/2016

How to install openMX

Hello,
I am new to OpenMX.I tried to install openmx ,but i get this error message on my r-terminal. How to install openmx in my windows 10 system? I want to be able to know how much memory have OpenMX.? Please give me more details?

Posted on
No user picture. falkcarl Joined: 10/29/2015

Error in runHelper NLOPT unrecognized error -1

While running simulations with the development version of OpenMx, I ran into an interesting error:

Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
NLOPT unrecognized error -1; please report to developers

It is somewhat difficult to replicate and it took some time to put together the attached example. As you may see in the attached, I read in the same dataset and fit the same model 10 times, obtaining likelihood-based CIs each time for a single parameter. The error only shows up for some replications.

Thought you all should know!

Posted on
Picture of user. tbates Joined: 07/31/2009

How to set the value of a computed parameter to that computed value?

Is there a function to put the computed value of all parameters determined by a bracket address (e.g. var[1,1] ) into the appropriate values cell(s) in the model?

Background and use-case: OpenMx allows us to use labels to set the value of a parameter (matrix cell). Here's a RAM model where I insert the value of covXY into the row 2, column1 of the symmetric path (S) matrix:


m1$S
$labels
x y
x "x_with_x" "covXY[1,1]"
y "covXY[1,1]" "y_with_y"


$values
x y
x 1.198632 0.000000
y 0.000000 2.018483

Posted on
Picture of user. tbates Joined: 07/31/2009

convert lavaan to OpenMx

It will often be easiest to simply recreate your model in OpenMx or to use umx’s umxRAM function. This will also lead to to nicer code, taking advantage of OpenMx’s features.

For automated translation of lavaan syntax into OpenMx, metaSEM provides the lavaan2RAM function.

Posted on
Picture of user. tbates Joined: 07/31/2009

Error: A cycle has been detected in model

If you create a multi-group model by simply embedding the group models in a container, be sure an add an explicit model name or put the fit function first. Otherwise mxModel will interpret the first parameter as a base model to update, and adding the multigroup function will cause a "cycle" - a reference that resolves back to itself.

works:

myModel = mxModel("twoGroups", m1, m2, mxFitFunctionMultigroup(c("female", "male")))

Fails:

myModel = mxModel(m1, m2, mxFitFunctionMultigroup(c("female", "male")))

Posted on
No user picture. Tiphaine Joined: 08/02/2016

Error message on Unix cluster with R 3.3.1

Hi,

I try to install OpenMx on a unix cluster different version of R 3.0 to 3.3 but I have a an error each time.

Can you help me ?

Regards,

tiphaine

Posted on
No user picture. Tom Joined: 08/05/2016

Installation problems on Mac OS X El Capitan (10.11.6)

Hi there, I'm having issues installing OpenMx version 2.6.7 on my iMac. I am currently running OpenMx 2.3.1 on R version 3.2.2 with no problems. When I run the line
source('http://openmx.psyc.virginia.edu/getOpenMx.R')

I get no error messages but when I subsequently run
require(OpenMx)
I get told the following:

Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/Users/tom/Library/R/3.2/library/OpenMx/libs/OpenMx.so':
dlopen(/Users/tom/Library/R/3.2/library/OpenMx/libs/OpenMx.so, 6): Symbol not found: ___addtf3

Posted on
No user picture. IvanVoronin Joined: 08/18/2013

Wierd estimate of mean in a simple model

Dear all,

I've met a weird issue with means running a simple model.

The data:
Cov<-matrix(
c(10,3.0,6.5,
3.0,10,6.5,
6.5,6.5,10),ncol=3,nrow=3)
library('mvtnorm')
data<-as.data.frame(rmvnorm(1000,mean=rep(100,3),sigma=Cov))
names(data)<-c('X','Y','Z')

The covariance matrix corresponds the model:
X -> Z = 0.5
Y -> Z = 0.5
X <-> Y = 3
X <-> X = 10
Y <-> Y = 10
Z <-> Z = 3.5
All means are 100

The model:
aModel<-mxModel(type='RAM',name='Phenotypic model',
manifestVars=c('X','Y','Z'),
mxPath(from=c('X','Y'),to='Z',connect='single',

Posted on
No user picture. jmquinn Joined: 08/18/2015

tssem2() results produce status code 5

Good morning, as this is my first post, I apologize in advance if I am missing any information.

I am running a meta-analytic SEM using the metaSEM package under the following environmental conditions:

OpenMx version: 2.5.2 [GIT v2.5.2]
R version: R version 3.2.2 (2015-08-14)
Platform: x86_64-apple-darwin13.4.0
MacOS: 10.11.3
Default optimiser: SLSQP

Package: metaSEM
Type: Package
Version: 0.9.6
Date: 2015-10-31
License: GPL (>=2)
LazyLoad: yes