OpenMx Help

Posted on
No user picture. spanosal Joined: 06/02/2010

CIs for Standardized Path Estimates

I am running a trivariate Cholesky decomposition using a script from the workshop. This script did not include CIs but I included it from another source. However, while the CI script allows me to run CIs for the genetic and environmental correlations, I can't figure out how to modify the script so I can run CIs for my standardized path estimates. The portion of my script that runs the CIs for correlations is below:

corComp_A <- mxAlgebra(solve(sqrt(ACE.I*ACE.A))%*%ACE.A%*% solve(sqrt(ACE.I*ACE.A)), name="corComp_A")

Posted on
Picture of user. wuhao_osu Joined: 09/07/2010

output$status

Hi,

As I am doing simulations, I can see many warning messages from NPSOL. It seems that @output$status is the place to look for those different convergence types. I can see (from a successful run) that "status" has three empty slots. May I know what the "status" will be for an unsuccessful/non-conventional convergence? Is there any reference or documentation on this topic? Thanks.

- Hao

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

Latent Covariance Helper Function

Hi All,

Is there already a helper function to allow users to easily extract the model-implied covariance matrix for the latent variables in a RAM-type model? If not, then I created one (attached). If there was already one, then I've duplicated it under possibly different implementation.

If this is useful to many people, then it could be incorporated into OpenMx at some point.

Posted on
No user picture. cvanhulle Joined: 05/07/2010

could not find functions?

I'm trying to use a couple of nifty functions that I cribbed from a script from the Twin Workshop. When I try to use
formatOutputMatrices or tableFitStatistics I get an error message saying R "could not find function".

Suggestions?

Thanks,
Carol

Posted on
No user picture. pgseye Joined: 10/13/2009

Objective function returned an infinite value

Hi again,

I'm trying to run an ordinal model with age and sex as covariates. The ACE model seems to run Ok, but then I receive the following error with an AE model:

> univAEOrdFit <- mxRun(univAEOrdModel, intervals=T)
Running univAEOrd
Error: The job for model 'univAEOrd' exited abnormally with the error message: Objective function returned an infinite value.
In addition: Warning message:
In runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
Not calculating confidence intervals because of error status.

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

Infinite Error Message

The attached code generates the following error message:


> first <- mxRun(model)
Running Alg

Posted on
No user picture. pgseye Joined: 10/13/2009

Unknown reference error

Hi All,

This is related to an earlier post where I've tried adding covariates to a saturated model:

http://openmx.psyc.virginia.edu/thread/651

I've followed Mike Neale's advice and set up a definition variables matrix (pre-multiplied by beta) instead of coding it effectively longhand. I'm having a problem though. The model runs ok in the first instance, but when I try to place some constraints, it returns an error message that I don't know how to resolve (see Model 1 below and the output that follows).

Posted on
Picture of user. wuhao_osu Joined: 09/07/2010

R forced closed during run

I would like to report an instance when R was forced closed without an error message.

I was running an ACE model with the components A C and E being matrices. When specifying the DZ twin covariance I used 0.5*A+C instead of 0.5%x%A+C, which caused the crash. Replacing the * by %x% fixed the problem.

Posted on
Picture of user. jdellava Joined: 10/14/2009

Error message when using mxRowObjective

Hi All,

I am trying to fit the alternate forms comorbidity model with raw data. When I run the script (attached) I get the following error message:

Error: The entity 'MZExpectedFrequency' in model 'MZ' generated the error message: 'lbound' must have length equal to diag(covariance).

Any suggestions?

Cheers,
Jocilyn