# OpenMx 2.0 Discussion

## Warning message

- Read more about Warning message
- Log in or register to post comments

## bug in manifest var ordering?

For starters, here's my mxVersion():

OpenMx version: 2.13.2 [GIT v2.13.2]

R version: R version 3.5.3 (2019-03-11)

Platform: x86_64-pc-linux-gnu

Default optimizer: CSOLNP

NPSOL-enabled?: No

OpenMP-enabled?: Yes

I'm encountering unexpected behavior when I reorder manifest vars AND use a cov matrix in mxData. Here's how to reproduce the behavior:

- Read more about bug in manifest var ordering?
- 3 comments
- Log in or register to post comments

## $R^2$ for endogenous variables

What is the best way to compute $R^2$ for endogenous variables in OpenMx?

I wrote the function below, I get negative $R^2$ for exogenous (not endogenous) variable. Shouldn't it produce zero for exogenous variables?

Thanks in advance,

Davood

- Read more about $R^2$ for endogenous variables
- 1 comment
- Log in or register to post comments

## mxRun makes R crashed with character ID column

I am using OpenMx to solve differential equation models, thanks to the the example given here https://www.rdocumentation.org/packages/OpenMx/versions/2.12.2/topics/mxExpectationStateSpaceContinuousTime

## extract data from fitted mxRun

Could you please let me know what is the best way to extract the original data set from fitted mxRun object?

Thanks

- Read more about extract data from fitted mxRun
- 1 comment
- Log in or register to post comments

## Definition variable for mean regression not working in WLS

The use of definition variable for regression in means model is not working for me when using WLS. Think it was supposed to work from version 2.12 and onwards, but I haven't gotten it to work. I haven't tried different platforms or software configs, so maybe it has something to do with these.

Attached is an example where it fails (but the ML-fitfunction works fine).

Here's my sessionInfo():

R version 3.4.1 (2017-06-30)

Platform: x86_64-w64-mingw32/x64 (64-bit)

Running under: Windows >= 8 x64 (build 9200)

## mxTryHard() indication for when rety limit reached in loop

Thanks!

## MxCompare with ‘boot=TRUE’

I have been trying to figure out the "parametric bootstrap" when ‘boot=TRUE’. I read the document for mxCompare as well as studying its source code. However, I would appreciate if you could answer the following questions:

1- Does mxCompare generate data from both fitted base and comparison models, fit the base comparison models, calculated LRT, and compute p-values?

2- According to the document for mxComparison,

- Read more about MxCompare with ‘boot=TRUE’
- 2 comments
- Log in or register to post comments

## Change in type="cor" behavior?

- Read more about Change in type="cor" behavior?
- 14 comments
- Log in or register to post comments

## MonteCarlo simulation for moderated mediation sample size

I was wondering if anyone could help me out in setting up code for a simulation based sample size estimation?

I'm working with a moderated mediation model (Model 14 as per A.Hayes PROCESS templates), where:

X is a dichotomous experimental condition (0 and 1)

M is a continuous mediator (mean of discrete 1 to 5 items)

V is a continuous moderator (mean of discrete 1 to 5 items)

Y is a continuous outcome (mean of discrete 1 to 5 items)

#### Pagination

- Previous page
- Page 3
- Next page