OpenMx Help

Posted on
No user picture. blazej Joined: 11/20/2018

Help in translating a longitudinal path model to OpenMx SEM syntax

Greeting everyone!

As I'm new to SEM (in general) and OpenMx I would like to ask you for some help in specifying the model in question properly.

I'm trying to reproduce results for a 3 time points path model where specific indirect effects where of interest. The original model was depicted as in attached image.

Posted on
No user picture. rranne2@uic.edu Joined: 12/10/2018

unexpected string constant error message in mxModel

Hi there,

I'm looking at how neuroticism ("per_neurot_y1f") predicts later change in symptoms of anxiety (from Time 1 to Time 3). I'm not sure why I'm getting this error message about this particular string of my model. Here's my code.

manifests <- c("Time1newanxiety", "Time3anxiety", "per_neurot_y1f")
latents<-"F1"

Posted on
No user picture. Veronica_echo Joined: 02/23/2018

Error message of mxTryhard() with NPSOL optimizer

Hi everyone,

I installed OpenMx2.11 thought source('https://openmx.ssri.psu.edu/software/getOpenMx.R') and wanted to switch optimizer by mxOption(NULL,"Default optimizer","NPSOL"), but I got error message
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
NPSOL is not available in this build. See ?omxGetNPSOL() to download this optimizer

I also had the same error message when I tried to use cluster to run the model.

How can I fix it? Any advice would be appreciated!

Posted on
No user picture. blazej Joined: 11/20/2018

Looking for help with including a moderator to a path model

Greetings,
this is my 1st post, so please forgive me if this is offtopic.

In sort of new to SEM / modelling in general. So far I managed to make some sense of lavaan() syntax in R, to run a path model like this (file attached).

Before introducing the W moderator (continuous) this model was specified (in lavaan) as:

model <- '
X1 ~~ X2
A ~ X1 + X2
Y ~ A'

All variables are observed and continuous.

Posted on
No user picture. Veronica_echo Joined: 02/23/2018

Error message when using get() to return values of OpenMx object

Hi everyone,

I am trying to return values of an OpenMx object from optimized mxModel by get() (more details could be found in attached). Is there any other way to return the value of an OpenMx object by string? Thanks in advance.

Posted on
No user picture. lior abramson Joined: 07/21/2017

the continuous part of the model is not positive definite

Hello,
I would like to ask your help with an error message that I cannot figure out.

First, some general details about my openMx version:

OpenMx version: 2.7.17 [GIT v2.7.17]
R version: R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32
Default optimiser: CSOLNP
NPSOL-enabled?: No
OpenMP-enabled?: No

I am trying to do a bivariate Cholesky model with paths specifications, with a syntax that worked before...
For some reason I get the following error message:

Posted on
No user picture. Veronica_echo Joined: 02/23/2018

Error message for mxCompare() with boot = T

Hi,

I want to compare a 2-class growth mixture model to a latent growth curve model in individually-varying time points framework (i.e., definition variables), and here is the code and error message and OpenMx version:

Posted on
No user picture. Veronica_echo Joined: 02/23/2018

Remove path from an existed model

Hi all,
I would like to remove one factor, say "IQ2", from a CFA (script is below). Does it work if I rewrite the model as

cfa2 <- mxModel(cfa, "one factor", mxPath(from = "Q2", to = "Q2", arrows=2, values = 0, free = F),
mxPath(from = "Q1", to = "Q2", arrows=2, values = 0, free = F),
mxPath(from = "Q1", to = observed, free = F, values = 0)
)

Is there any more convinience way to remove path?

Thanks in advance!