OpenMx Help

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

Error in .Internal(as.vector(x, "symbol")) : 'x' is missing

maybe it is too late at night, but am befuddled by this error message:

> model1 <- mxModel(model1,
+ mxAlgebra(name="fvalMZ", expression = weight * (MZ@data@observed - MZ$zpreMZ) *
+ (MZ@data@observed - MZ$zpreMZ)))
Error in .Internal(as.vector(x, "symbol")) : 'x' is missing

full code attached

Posted on
Picture of user. miquel.bosch Joined: 04/01/2012

Problem installing OpenMx on openSUSE 12.1

Hi everybody,

I want to install OpenMx on on openSUSE 12.1 but it doesn't work. The R version is 2.13.2 and I'm not sure if the RKWard (KDE's R graphical front end) may interfere. Could you help me please?

Thanks;

Miquel Bosch

R's code output:

> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
1. single-threaded
2. multi-threaded [default]
Installing package(s) into ‘/home/miquel/R/i586-suse-linux-gnu-library/2.13’
(as ‘lib’ is unspecified)
trying URL 'http://openmx.psyc.virginia.edu/packages/src/contrib/OpenMx_1.2.2-1986.tar.gz'

Posted on
No user picture. Mrkwht Joined: 03/27/2012

RMSEA returns NA

I fit a basic latent growth curve model (using covariance data and means) and everything seems to work fine, but the RMSEA is returning NA in the summary function. Looking at the behavior of the summary function, it appears that this is because the squaredRMSEA is less than 0 (model chi-sq=3 with df=4). I am just now in the process of learning SEM, so forgive the basic question. But I thought that RMSEA should be given as 0 if this happens, not NA. I'm sure that I'm just missing something, but what is the reasoning behind returning NA?

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

MIMIC model : Expected covariance matrix is non-positive-definite.

Hi all,

Any clues on getting this mimic model working? I've explored a range of start-vals... always getting NonPosDef
omx seems not to like models with formative structures (i've got it going with the formative measures having residual variance, rather than being correlated)

Example is from chapter 13 Schumacker and Lomax Beginner's guide to SEM

data <- data.frame(matrix(c(
1.000, 0.304, 0.305, 0.100, 0.284, 0.176,
0.304, 1.000, 0.344, 0.156, 0.192, 0.136,
0.305, 0.344, 1.000, 0.158, 0.324, 0.226,
0.100, 0.156, 0.158, 1.000, 0.360, 0.210,

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

Creating a function that creates OpenMx models

I'm trying to write an R function that would create and run an OpenMx model. I can do this for a simple one factor model. I read in a data.frame for the data and construct all the paths and then do an mxRun. This works regardless of the number of variables in the data.frame. But I want to generate mxAlgebra statements (and other statements, like including parameters in an mxCI statement) which change depending on the number of variables.

Posted on
No user picture. StuartJRitchie Joined: 03/20/2012

Error running joint ordinal-continuous model - 'Requested improper index (1) from (1, 1) vector'

Running a slightly modified version of the joint ordinal-continuous example from the manual on Mac OSX, on the latest version of OpenMx (single-threaded download). Getting the following error when using mxRun:

> m1 <- mxRun(TestModel)
Running SES
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
Requested improper index (1) from (1, 1) vector.

Can provide model and data on request. Any clues?

Thanks in advance.

Stuart

Posted on
No user picture. dchackett Joined: 05/19/2011

'Malformed package version' compiling on Windows 7

Having an issue compiling OpenMx on Windows 7 (64 bit).

Before revision 1908 I don't have this problem. On revision 1909 and afterwards, I get the output below.

This error occurs with both R 2.13.0 and R 2.14.2. This is with the PATH location referring specifically to R-2.X.X\bin\i386 for each, so I don't think it has anything to do with 64-bitness. Also, builds correctly on a Ubuntu install on the same machine.

c:\Users\Dan\Documents\Projects\openmx\trunk>make install
svnversion: not found
svnversion: not found
rm -rf build/*
rm -rf models/passing/temp-files/*

Posted on
Picture of user. HanOud Joined: 12/20/2009

THard=-n

I have had good experience with the Mx option THard=-n in Mx, also called Automatic Cold Restart. Is this option still available in OpenMx and, if not, why is it taken out?
Thanks for any answer in advance,
Han Oud

Posted on
No user picture. Docherty Joined: 02/20/2012

Expired links to scripts in OpenMx guide

Is there anywhere to find the original scripts from the manual for OpenMx? When clicking on the links, each webpage is unavailable. Thanks for any redirection.