OpenMx Help

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

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.
- Read more about convert lavaan to OpenMx
- Log in or register to post comments

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")))
- Read more about Error: A cycle has been detected in model
- Log in or register to post comments

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
- Read more about Error message on Unix cluster with R 3.3.1
- 4 comments
- Log in or register to post comments

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

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',
- Read more about Wierd estimate of mean in a simple model
- 1 comment
- Log in or register to post comments


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
- Read more about tssem2() results produce status code 5
- 2 comments
- Log in or register to post comments

OpenMx crashes after R update
Hi OpenMx team,
I have been unable to get OpenMx to run after updating my R install, R installation and XCode. I now get this error running the basic example:
> model <- mxRun(model) # Run the model, returning the result into model
Running One Factor with 10 parameters
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: .Call(backend, constraints, matrices, parameters, algebras, expectations, computes, data, intervalList, communication, options, defVars, PACKAGE = "OpenMx")
- Read more about OpenMx crashes after R update
- 2 comments
- Log in or register to post comments

Rmpi
I am trying to parallelize OpenMx on a computing cluster at my university. I'm using Rmpi, and I keep getting the same error:
Error in { : task 18 failed - "job.num is at least 2."
Calls: %dopar% ->
Execution halted
--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 1077 on
node compute-0-11.local exiting improperly. There are two reasons this could occur:
1. this process did not call "init" before exiting, but others in
the job did. This can cause a job to hang indefinitely while it waits
- Read more about Rmpi
- 6 comments
- Log in or register to post comments
Pagination
- Previous page
- Page 16
- Next page