OpenMx Help

Posted on
Picture of user. DavidCross Joined: 06/27/2011

Fitted correlation/covariance matrix (or residual matrix)

I am curious if there is a straightforward way to obtain either the fitted covariance/correlation matrix or the residual matrix?

TIA

Posted on
No user picture. JWiley Joined: 03/25/2011

p-values from summary and mxCompare do not match

Specifically, I fit a model as well as a saturated model. When calling summary, I pass the -2LL and DF from the saturated model, with mxCompare, I compare my model with the saturated. Here are the results, everything else is as expected. Am I missing something?
from summary():
chi-square: 5.35
p: 1

from mxCompare():
minus2LL df AIC diffLL diffdf p
1 5318 742 3834 NA NA NA
2 5323 744 3835 5.35 2 0.0691

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

model name from output

I am writing a function that returns the standardized parameter estimates for multigroup models. I would like to start the output for each group with something like:

"standardized estimates [model name]"

However, I can not figure out how to extract the model name from the output. Is it possible to get it?

For example if the output object looks like below, how do I extract 'men2'?

MxModel 'men2'
type : default
@matrices : 'L', 'F', 'Q', 'T', and 'K'
@algebras : 'S' and 'M'
@constraints :
@intervals :
@latentVars : none
@manifestVars : none
@data : 5 x 5

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

Error: The observed correlation matrix is not 1's along the diagonal

Getting this error
Error: The observed correlation matrix is not 1's along the diagonal

from the statement
mxData(cor, type="cor", numObs=1656)

but looking at the data matrix indicates that its diagonal consists of 1's

> diag(cor)
SOF IWF PWF FSC FSF EF GPA
1 1 1 1 1 1 1

cor
SOF IWF PWF FSC FSF EF GPA
SOF 1.00000000 -0.310734680 0.02337843 -0.01050081 0.324939442 -0.49945847 0.83664278
IWF -0.31073468 1.000000000 0.09947420 -0.03052640 0.001136279 0.49532944 -0.10899843

Posted on
No user picture. JWiley Joined: 03/25/2011

examples of parameter constraints possibly with mxAlgebra?

Does anyone have or know of where I could find examples of models where some paths are functions of other parameters? For example, suppose I wanted to estimate two parameters for three paths so the third was a function of the first two: a, b, b + a/2. I've been looking at the ABO blood group example in the documentation, which does some things similar to what I want, but it is a stretch.

Thanks in advance!

Posted on
Picture of user. DavidCross Joined: 06/27/2011

Can't install OpenMx on Mac OS X 10.7.2 (Lion) running R version 2.14.0

R version 2.14.0 (2011-10-31)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

...

> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
Warning: unable to access index for repository http://openmx.psyc.virginia.edu/packages/bin/macosx/leopard/contrib/2.14
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘OpenMx’ is not available (for R version 2.14.0)

Any ideas?
TIA

Posted on
No user picture. JWiley Joined: 03/25/2011

non-positive-definite when arrows=2

Whenever I try to fit models and add covariances with arrows=2, I always have a heck of a time getting the model past the 'expected covariance is non-positive definite' error. Is this normal? I do not have nearly this much trouble with arrows = 1. Here is a little example using a built in dataset:

#########################
summary(mxRun(m <- mxModel("Example", type = "RAM",
manifestVars = colnames(ability.cov$cov), latentVars = "G",
mxData(ability.cov$cov, type = "cov", numObs = ability.cov$n.obs),
mxPath(from = "G", to = colnames(ability.cov$cov)),

Posted on
No user picture. mrubin Joined: 10/28/2011
Posted on
Picture of user. rabil Joined: 01/14/2010

gcc4.6 and libnpsol.a and Ubuntu 11.10 - How Can I Get OpenMx to Install?

I'm running Ubuntu 11.10 on a Dell Inspiron 1545 laptop (Intel). How can I fix this? Thanks for any suggestions. Where can I get libnpsol.a?

R version 2.13.1 (2011-07-08)

> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
Installing package(s) into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
trying URL 'http://openmx.psyc.virginia.edu/packages/src/contrib/OpenMx_1.1.1-1785.tar.gz'
Content type 'application/x-gzip' length 6362441 bytes (6.1 Mb)
opened URL
==================================================
downloaded 6.1 Mb

Posted on
Picture of user. carey Joined: 10/19/2009

on mxOption()

this is a reply to mike spiegal's comments in the 'mxOption "Cold Start"' thread about the NPSOL options that should be implemented in OpenMx.