OpenMx Help

Posted on
No user picture. wushenghui Joined: 02/15/2013

Cholesky decomposition (one continuous and one binary variables)

I would like to seek for your help for the code. I would like to model a two-factor Cholesky decomposition using 1 continuous and 1 binary variable in the model. Your help is highly appreciated!

Posted on
No user picture. Joper Joined: 02/23/2013

Source codes

Hello! Does anybody know how can we download the source codes of OpenMx? We didnt find links to the source codes from the OpenMx Website. Thank you!

Posted on
Picture of user. Robert Long Joined: 02/22/2013

Converting a Stata -sem- path model

Hi all

I am trying to convert a simple path model from Stata. In Stata I use

clear all
ssd init EE DR RO SE
ssd set observations 321

ssd set sd 15.23 10.15 16.27 1.01

ssd set correlations ///
1 \ ///
0.25 1 \ ///
0.78 0.21 1 \ ///
-0.47 -0.27 -0.35 1

sem (SE -> EE) (EE -> DR) (EE -> RO) (DR -> RO), nocapslatent

This generates the following output


------------------------------------------------------------------------------
| OIM
| Coef. Std. Err. z P>|z| [95% Conf. Interval]

Posted on
Picture of user. Robert Long Joined: 02/22/2013

Expected covariance matrix is non-positive-definite

Hi all

I'm new to OpenMx. Actually I'm trying to convert some SEMs written in Stata into R for a module that I am helping to deliver, and for better or worse, we have chosen OpenMx as the R package to use.

It is a very simple path analysis. In Stata the code is just


ssd init BMI SO RT SE
ssd set correlations ///
1 \ ///
0.43 1 \ ///
0.16 0.53 1 \ ///
0.02 -0.18 -0.25 1

ssd set sd 4.46 7.09 5.68 5.97
ssd set observations 202

sem ///
( SE <- RT ) ///
( RT <- SO ) ///
( SO <- BMI ) ///
, standardized nocapslatent

Posted on
No user picture. S Clifford Joined: 02/19/2013

Very basic installation question

Hi, I'm a new user with an extremely basic installation question. Basically, the installation instructions provided on the website say:

"open up an R session and copy the following line into the R command line and press return.

source('http://openmx.psyc.virginia.edu/getOpenMx.R')

A few lines of R output will scroll by and you will be asked which type of OpenMx Installation you would like. "

Posted on
No user picture. Flo Joined: 01/29/2013

NPSOL Error Message 6

Hello everybody,
I try to do a Monte Carlo simulation with a very simple SEM. I've got 2 latent variables and 3 categorical indicators with 3 categories per latent variable (see the attachment).
If I run my model (code is also in the attachment) I receive different error messages:
-"In model 'Title' NPSOL returned a non-zero status code 1. The final iterate satisfies the optimality conditions to the accuracy requested..."
-"In model 'Title' NPSOL returned a non-zero status code 6. The model does not satisfy the first-order optimality conditions..."

Posted on
Picture of user. rabil Joined: 01/14/2010

OpenMx Crash - double free or corruption - CT-SEM

I'm trying to run the CT-SEM examples from Oud et al. I'm running on an 8-core system that's running Red Hat EL5. I compiled R locally (2.15.2 Patched (2013-01-22 r61734)) and I'm running OpenMx 1.3.2. I've attached the CT-SEM files (containing data, input, and continuous_time function) and the output when R crashes.

Posted on
Picture of user. psunthud Joined: 02/14/2012

Cannot run several examples with OpenMx 1.3.2

Hi all,

I install the OpenMx for windows today. I found that I cannot run several example scripts:

http://openmx.psyc.virginia.edu/svn/trunk/demo/BivariateSaturated_MatrixRawCholesky.R
http://openmx.psyc.virginia.edu/svn/trunk/demo/BivariateHeterogeneity_PathRaw.R

The error messages are

Error in mxModel("bivSat6", mxMatrix(type = "Full", nrow = 2, ncol = 2, :
could not find function "mxFitFunctionML"

Error in mxModel("bivariate Heterogeneity Path Specification", mxModel("group1", :
could not find function "mxFitFunctionAlgebra"

Posted on
No user picture. romidico Joined: 01/09/2013

Multivariate ACE error message in binary data

Hi all,

I am trying to run multivariate ACE model for binary data, but I keep on getting error message...

This is my script:

require(OpenMx)

# ------------------------------------------------------------------------------
# PREPARE DATA

OMdataset <- read.csv("twins-only.csv", header=T,)
# sep = ",", dec = ".", quote="\"", na.strings="-99"

OMdataset$TONSa -> OMdataset$T_01
OMdataset$TONSb -> OMdataset$T_02

OMdataset$ADENa -> OMdataset$A_01
OMdataset$ADENb -> OMdataset$A_02

OMdataset$GROMa -> OMdataset$G_01
OMdataset$GROMb -> OMdataset$G_02

Posted on
No user picture. halec Joined: 12/10/2012

"No such file" during install attempt

My install attempt on Windows 7 using R 2.15.1 is failing with the message below. Can you suggest solutions? Thanks!

> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
trying URL 'http://openmx.psyc.virginia.edu/packages/bin/windows/contrib/2.15/OpenMx_1.3.2-2301.zip'
Content type 'application/zip' length 7964184 bytes (7.6 Mb)
opened URL
downloaded 7.6 Mb

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
cannot open the connection
In addition: Warning messages:
1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file