OpenMx Structural Equation Modeling

Adding new algebras in submodels and constraining them
I am running a bivariate moderation model and would like to set some constraints in order to test for some nonlinear effects. I am struggling though with adding new algebras into submodels (with subsequent equating them). Let's say that I specify
pathAm <- mxMatrix(name = "am", type = "Lower", nrow = nv, ncol = nv, free=T, labels = c("amM","amC","amU"), values=pathVal)
pathCm <- mxMatrix(name = "cm", type = "Lower", nrow = nv, ncol = nv, free=T, labels = c("cmM","cmC","cmU"), values=pathVal)


Unable to reproduce MASEM results from a published study
I'd like to reproduce the meta-analytic structural equation modeling (MASEM) results from this study:
soonang[dot]com/wp-content/uploads/2011/04/2007-MISQ-Ang1.pdf
I used the correlation matrix (Table 3, p. 559) as input and specified the paths according to Figure 2 (p. 560).
Additionally, I set the number of observations to 701 (p. 558).
The full openMx code is attached.
The openMx output for the parameter estimates fits the values in Figure 2 quite well.
However, the openMX fit statistics are quite different from the ones in the paper.

Does OpenMx support SEM analysis using ordinal/binary indicators and sampling weights
I'd like to know if it's possible to estimate a sem model with ordinal and binary indicators using a WLS estimator based on the raw data including the sampling weights. The data set contains a weight column with an individual weight for each case and I don’t need multilevel modeling.
I am currently using the R package lavaan for SEM analysis. As lavaan does not support this functionality, I’m considering changing to OpenMx.

Correlated residuals of manifest variables
Is anybody knows how to model correlated residuals of some manifest variables in OpenMx? Can you give me any example of mxPath()
application to this issue?
best regards,
Krzysztof
- Read more about Correlated residuals of manifest variables
- 6 comments
- Log in or register to post comments

Constraining path loading to values of a latent
I've been mainly generating the model with mxPath rather than mxMatrix, but this can change as needed...
Cheers for any suggestions!

Definition Variables in Constraints and Confidence Intervals
The model works fine with equally spaced time points - I can get back the ar(1) value used in the simulation.
To handle unequal spacing, I'm using definition variables. The trick is to constrain the ar loadings. Suppose you have (a simple path diagram):
x1 --> x2 --> x3 --> x4 --> x5 --> x6

Cholesky decomposition (one continuous and one binary variables)

Help with UnivariateTwinAnalysis_MatrixRawConACE.R
I have been using the sample script UnivariateTwinAnalysis_MatrixRawConACE.R. I would like to extend this in two ways:
* Print out a, c, and e (where appropriate) path variables and the standardized version of these for all models, (i.e. AE, CE, E not just ACE)
* Print out confidence intervals for ACE.A/ACE.V etc.
Can anybody help with this?
Thankyou
Karin

Finding likelihood-based confidence interval when a matrix contains definition variables
I have a problem running multilevel model using a SEM framework to get a likelihood-based CI of the effect size. I have two factors representing (random) intercept and (fixed) slope. I attach my data file here. Use the following code to get the dataset:
datawide <- read.csv("datawide.csv")
The dataset has been transformed into a wide format. Y is the response variable. X is the upper-level predictor. Z is the lower-level predictor without any centering. My target model is
L1: Y = B_0 + B_1 * Z + r
L2: B_0 = X + u
Pagination
- Previous page
- Page 6
- Next page