OpenMx Help
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
- Read more about myTwinData.txt?
- 2 comments
- Log in or register to post comments
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
- Read more about * and %x% operators in mxAlgebra
- 3 comments
- Log in or register to post comments
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.
- Read more about Where can I download the source codes.
- 1 comment
- Log in or register to post comments
Lawrence L Lo
Joined: 02/24/2010
Appending mxAlgebra expressions
Hello,
I am trying to generate mxAlgebra expressions from a size variable. I have a variable amount of mx submodels and am trying to add the objectives from these together for a full model objective. I have tried things like
mxAlgebra(sum(get(paste("submodel",1:x,".objective",sep=""))),
name="TotObj")
and other various methods. I also tried the method described on
http://openmx.psyc.virginia.edu/thread/537
but don't think this will help in my particular situation.
Any suggestions?
Best,
-LLL
- Read more about Appending mxAlgebra expressions
- 2 comments
- Log in or register to post comments
brandmaier
Joined: 02/04/2010
No dataset associated with a model
Hi everybody!
It seems that OpenMx does not allow specifying a model without a dataset (see error message (1)). Sure, we will eventually need a dataset to run the model but at design time, I might not have a dataset yet. Only later in the program I might decide to load different datasets and associate them with the same model while at first the dataset reference could be NULL.
Shouldn't OpenMx allow NULL or some kind of empty dataset and test only within run() whether there is a valid dataset available?
- Read more about No dataset associated with a model
- 2 comments
- Log in or register to post comments
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?
Hermine
Joined: 07/31/2009
Error in registerS3method
After sourcing the latest version of OpenMx on a Windows XP machine running R 2.9.2, we get the following error upon 'require(OpenMx):
require(OpenMx)
Loading required package: OpenMx
Error in registerS3method(Info[i, 1], Info[i, 2], Info[i, 3], env) :
no slot of name "methods" for this object of class "derivedDefaultMethod"
In addition: Warning message:
package 'OpenMx' was built under R version 2.11.0
Any suggestions on how to fix this?
Thanks,
Roseann & Hermine.
- Read more about Error in registerS3method
- 1 comment
- Log in or register to post comments
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),
- Read more about @submodels slot
- 2 comments
- Log in or register to post comments
pgseye
Joined: 10/13/2009
Error in Slot
Hi,
Some scripts which I'm sure have run without problems a couple of months ago are now giving me the following error:
> equateAEModelFit <- mxRun(equateAEModel)
Running equateAE
Error in slot(model, name) :
no slot of name ".newobjects" for this object of class "MxModel"
Any ideas what's happening?
Thanks,
Paul
- Read more about Error in Slot
- 4 comments
- Log in or register to post comments
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?
- Read more about remove = TRUE issue
- 3 comments
- Log in or register to post comments
Pagination
- Previous page
- Page 45
- Next page