Documentation

Error in http://openmx.psyc.virginia.edu/docs/OpenMx/2.6.7/_static/demo/OneFactorJoint_PathRaw.R ?
http://openmx.psyc.virginia.edu/docs/OpenMx/2.6.7/_static/demo/OneFactorJoint_PathRaw.R
When I ran it, there were no estimates for the factor loadings.
This code doesn't include "facLoads". Shouldn't it?
oneFactorJointModel <- mxModel("Common Factor Model Path Specification", type="RAM",
manifestVars=c("x1","x2","x3","z1","z2","z3"), latentVars="F1",
dataRaw, resVars, latVar, means, thresholds)
I think this is what is needed:

Syntax Highlighting for R scripts?
http://alexgorbatchev.com/SyntaxHighlighter/
which currently lacks R support (and its wish list forum has been closed due to spam) but it is customizable. Possibly, building an R highlighter - and particularly one that understands OpenMx functions - would be useful? Or perhaps someone has another solution?
- Read more about Syntax Highlighting for R scripts?
- 9 comments
- Log in or register to post comments

Error in documentation script?
http://openmx.psyc.virginia.edu/docs/OpenMx/latest/FIML_RowObjective.html
It seems to fail with the following error:
Running FIML BivCor
Error: Unknown reference 'filteredDataRow' detected in the entity 'secondHalfCalc' in model 'FIML BivCor'
am i doing something wrong? i merely copy pasted it.
Michel
- Read more about Error in documentation script?
- 2 comments
- Log in or register to post comments

Errors in OpenMx 1.1 "Example: Common Factor Model for Ordinal Data"
Original S matrix:
mxMatrix(
type="Symm",
nrow=4,
ncol=4,
values=c(1,0,0,0,0,0,0,
0,1,0,0,0,0,0,
0,0,1,0,0,0,0,
0,0,0,1,0,0,0,
0,0,0,0,1,0,0,
0,0,0,0,0,1,0,
0,0,0,0,0,0,1),
free=c(T, F, F, F,

constraints and SE
It would be very helpful to add a comment to the mxConstraint documentation to tell users that using this will turn off the standard errors.
I couldn't find any comments in the example ordinal data scripts advising users about this.
thanks
Sarah
- Read more about constraints and SE
- 1 comment
- Log in or register to post comments

help(package="OpenMx") doesn't look up html version
I was expecting help(package="OpenMx") to startDynamicHelp.
Would be nice if it did, as the plain text is not very helpful :-)
t
- Read more about help(package="OpenMx") doesn't look up html version
- Log in or register to post comments

Undocumented mx* and omx* functions as of v1648 on 05/19/2011
These are based on v1648 as of 05/19/2011.
Undocumented mx* functions:
mxDeparse
Undocumented omx* functions:
omxCheckMatrices
omxCheckNamespace
omxExponential
omxGetRAMDepth
omxInterval
omxNameAnonymousParameters
omxParallelCI
omxQuotes
omxRAMtoML
omxSelectCols
omxSelectRows
omxSelectRowsAndCols
omxSymbolTable
omxTransformModelPPML

Adding a covariate
I have been learning how to structure the analyses and scripts for examining twin data and I am having some trouble with 'adding a covariate'. When I run the following code.(which I didn't write)...............
mxModel("Sibs",
mxMatrix( type="Lower", nrow=ntv, ncol=ntv, free=TRUE, values=1, name="Chol" ),
mxAlgebra( expression=Chol %*% t(Chol), name="expCov" ),
#regressing out covariate
mxMatrix( type="Full", nrow=1, ncol=ntv, free=TRUE, values=0, labels="intercept", name="grandMean" ),
- Read more about Adding a covariate
- 3 comments
- Log in or register to post comments

accessing model elements
The first useful trick is entering the string model$ in the R interpreter and then pressing the TAB key. You should see a list of all the named entities contained within the model object
I enterd the prior script to define model, but, alas, when I enter:
model$
and press Tab
absolutely nothing happens.
I have a bog standard PC and am using R via the Gui.
Thought I must be doing something stupid and tried several times but no joy.
- Read more about accessing model elements
- 4 comments
- Log in or register to post comments

illegal characters in names
Just to say that this will have implications for some of the demonstration scripts. I have not checked them all, but the model on p 31 of the OpenMx documentation has a model name that won't work, and I have also found cases in demo files where the objective has the name "-2LL".
For beginners used to other programming languages, the fact that a syntax error does not terminate operation of a script is confusing.
- Read more about illegal characters in names
- 4 comments
- Log in or register to post comments
Pagination
- Page 1
- Next page