OpenMx Help

Posted on
No user picture. dadrivr Joined: 01/19/2010

Include parameter estimates on .Dot plots from omxGraphviz()

After using omxGraphviz() to output a .Dot plot from my OpenMx model, I get a diagram of the model, but no parameter estimates are overlaid on the diagram. Is there a way to do this? Thanks in advance.

Posted on
No user picture. brauer Joined: 01/28/2012

NPSOL returned a non-zero status code 1

Hi all,

I ran a relatively simple path analytic model with four manifest variables, three causal paths, and one unanalyzed relationship. The model has 2 df. I used the code below but got the following error message:

"In model 'Apgar Model 2' NPSOL returned a non-zero status code 1. The final iterate satisfies the optimality conditions to the accuracy requested, but the sequence of iterates has not yet converged. NPSOL was terminated because no further improvement could be made in the merit function (Mx status GREEN). "

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

Just a hat-tip to our helpful and personal error messages...

Comment from student on getting a helpful error in OpenMX of the form "I'm sorry I can't..."

"Gee: That's the first time I've ever seen R talk in the first person: That's nice!"

:-)

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

Suggestion for install URL install.packages('OpenMx', repos='http://openmx.psyc.virginia.edu/testing/')

Instead of having users access a blind URL and run a a blind script, i wonder if a one-liner like this might be easier to follow for people?

Suggested new instruction

install.packages('OpenMx', repos='http://openmx.psyc.virginia.edu/testing/')

Current

source("http://openmx.psyc.virginia.edu/getNewOpenMx.R")
# which runs this silently
repos <- c('http://openmx.psyc.virginia.edu/testing/')
install.packages(pkgs=c('OpenMx'), repos=repos)
Posted on
Picture of user. wibeasley Joined: 11/11/2011

Incorporating OpenMx in documentation examples of other packages.

I'm on a grant whose goal is to develop reliable kinship links to facilitate BG and other developmental studies with the NLSY samples (eg, http://www.bls.gov/nls/nlsy79.htm). We're developing an R package (cran.r-project.org/web/packages/NlsyLinks/) that assists with many of the common manipulations and analyses. We're targeting all BG researchers who are interested in the NLSY, including those with limited experience in R.

OpenMx seems like a natural fit for our examples, but I'm hesitant to use it in our basic documentation, because of two deployment issues:

Posted on
No user picture. fife Joined: 07/01/2010

Can't replicate sem package in R

I'm slowly converting to OpenMX because of its fiml capabilities. I recently built two models that are shown in the enclosed attachments. You will notice that the correlation between T and P is identical in both models (whether S or D is used). However, when I try to replicate these results in OpenMX, I don't get identical results; they're usually about .04 different, which is quite significant for what I'm doing.

Here's my openMX code:

sem.model.S = mxModel("Two Factor Model Path Specification",
type="RAM",
dd,
manifestVars = names(data),
latentVars = c("T", "P"),

Posted on
Picture of user. suzannejak Joined: 01/06/2010

Wrong algebra?

I'm sorry if this is a too specific question, I tried to use the Python parser but I am totally unfamiliar with Python and can't get it working.

I keep finding differences between my Mx and OpenMx analysis and I think I must have made a mistake in translating the following algebra:

in Mx:

G = (Y-X)@(A.((A.A)*(V-J))) + X@(A.((U-I)*(A.A)));

in OpenMx (wrong?):

algebraG = mxAlgebra(expression = (Y-X) %x% (A*((A*A)%*%(V-J))) + X %x% (A * ((U-I)%*%(A*A))), name = "G")

Posted on
Picture of user. wuhao_osu Joined: 09/07/2010

Are these available currently or soon?

Hi,

It would be very helpful if the following can be done in OpenMx:

1. Evaluate (for all cases at once) an mxAlgebra that involves definition variables. I think currently one can only evaluate such an mxAlgebra for a single case.

2. Define an user specified objective function that is the sum of a casewise function of the data and parameters. I think currently the casewise function can be defined with definition variables, but is there a way to sum them?

Posted on
Picture of user. suzannejak Joined: 01/06/2010

constraint on algebra result

Dear all,

I would like to add a constraint in my EFA model to ensure that Z is diagonal. Z is a function of other matrices. I used an mxConstraint, where J is a conformable identity matrix. My question is, do you see a way of specifying this using labels instead of an mxConstraint?

algebraZ = mxAlgebra(expression = t(L)%*%G%*%solve(F), name = "Z") # should be diag

constraint1 = mxConstraint(Z == J*Z, name = "oblique")

Thanks in advance, I can give my full code if needed.

Suzanne