OpenMx General Help

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

Another Strange Error Message

fyi,

got the following error message after mxRun():

Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
BLAS/LAPACK routine 'DPOTRF' gave error code -4

to save y'all some time, turns out that i was running an old script that had an MxAlgebra object with the expression ".5 * VA" where VA was a matrix. to fix it, i just had to change this to ".5 %x% VA."

suggest you trap the DPOTRF error and return a more intelligible error message.

greg

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

likelihood function for type=cov/cor

the default likelihood function for observed data of type=cov or cor multiplies
log(det(predictedCov)) + trace(observedCov %*% inverse(predictedCov))
by (numObs - 1). my understanding is that both the derivations from the multivariate normal pdf and the wishart pdf lead to this being multiplied by numObs and not (numObs - 1). (note that math/stat treatment of the wishart talks of "degrees of freedom" but the actual algebra defines this quantity as numObs).

i stand to be corrected here.
greg

Posted on
No user picture. Karin Joined: 02/11/2011

myTwinData.txt?

Hi

I am new to OpenMx and thought that I would try things out by working through some of the examples.

Does anyone know where I can get the dataset myTwinData.txt that is used in some of them?

Thankyou

Karin

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

* and %x% operators in mxAlgebra

anyone explain this?

> model2 <- mxModel(model1, mxAlgebra(.5*CTf, name="CTDZf"))
> model2 <- mxRun(model2)
Running SameMZDZf
Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
BLAS/LAPACK routine 'DPOTRF' gave error code -4

> model2 <- mxModel(model1, mxAlgebra(.5 %x% CTf, name="CTDZf"))
> model2 <- mxRun(model2)
Running SameMZDZf
Warning message:
In model 'SameMZDZf' NPSOL returned a non-zero status code 1. blah blah ...

yet
> mat <- matrix(rnorm(16), 4)
> .5 * mat == .5 %x% mat
[,1] [,2] [,3] [,4]
[1,] TRUE TRUE TRUE TRUE

Posted on
No user picture. xlzqz Joined: 02/08/2011

Where can I download the source codes.

Does anybody know how can we download the source codes of OpenMx. Looks like no links to the source codes from the OpenMx Website.

Posted on
Picture of user. Lawrence L Lo Joined: 02/24/2010
Posted on
Picture of user. trinewa Joined: 11/30/2009

How do I add a demo script to an OpenMx directory?

Hi
I woulld like to share a demo script to the following directory:
http://openmx.psyc.virginia.edu/repoview/1/trunk/demo

The Wiki says where to put the file, but not technically how to add the file to the directory.
Any help?

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

@submodels slot

run:

MZf <- mxModel(name="MZf", mxData(ObsCovMZf, type="cov", numObs=nMZf),
mxMLObjective(covariance='myModel.PreCovMZf'))
DZf <- mxModel(name="DZf", mxData(ObsCovDZf, type="cov", numObs=nDZf),
mxMLObjective(covariance='myModel.PreCovDZf'))
myModel1 <- mxModel(name="myModel", MZf, DZf)
myModel1

then run and compare:

MZf <- mxModel(name="MZf", mxData(ObsCovMZf, type="cov", numObs=nMZf),
mxMLObjective(covariance='myModel.PreCovMZf'))
DZf <- mxModel(name="DZf", mxData(ObsCovDZf, type="cov", numObs=nDZf),

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

remove = TRUE issue

try the following code

VA <- mxMatrix(name="VA", type="Symm", nrow=5, ncol=5)
DZ <- mxAlgebra(.5 %x% VA, name="covDZA")
test <- mxModel(model="test", VA, DZ )
test
names(test)
rm1 <- mxModel(test, test@matrices$VA, remove=TRUE)
rm2 <- mxModel(test, test@algebras$covDZA, remove=TRUE)
rm3 <- mxModel(test, test@algebras$DZ, remove=TRUE)

why doesn't remove=TRUE work with rm1 and rm2 while it fails to throw an error or warning with rm3?

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

MxModel@intervals

some old (over 1 year ago) MxModel objects that i saved are giving me the following error in R:
Error: no slot of name "intervals" for this object of class "MxModel"

if i create a new MxModel, it shows a slot for intervals of type list. but i cannot find documentation for this slot in http://openmx.psyc.virginia.edu/docs/OpenMx/latest/_static/Rdoc/MxModel… (or in the doc for mxModel either).

any help?
best,
greg