demo files

8 replies [Last post]
tbates's picture
Offline
Joined: 07/31/2009
tbates's picture
Offline
Joined: 07/31/2009
is there an oldMx file for a

is there an oldMx file for a bivariate twin model, for adding the equivalent of this

#mymatrices1 <- omxOriginalMx("mx-scripts/univACE.mx", "temp-files")

to a multivariate twin demo model for correctness checking?

tbates's picture
Offline
Joined: 07/31/2009
Bug in

Bug in trunk/demo/DefinitionMeans_PathRaw.R

Isn't this wrong?: The third value will cause the labels to be recycled and create a second x<->x variance path, and leaving the variance on y incorrectly set to .1?

mxPath(from=c("x","y"),
arrows=2,
free=TRUE,
values=c(1,.1,1),
labels=c("Varx","Vary")
)

tbates's picture
Offline
Joined: 07/31/2009
this is still broken.

this is still broken.

mspiegel's picture
Offline
Joined: 07/31/2009
Please commit the fix into

Please commit the fix into the repository.

tbates's picture
Offline
Joined: 07/31/2009
trivial suggestion: if the

trivial suggestion: if the files with all the examples of a given type are called "xxx_All.R", then people will easily know what they do, and they'll float to the top of lists, instead of the bottom

BivariateSaturated_All.R <--- this
BivariateSaturated_PathCov.R
BivariateSaturated_PathRaw.R
BivariateSaturated_MatrixCov.R
BivariateSaturated_MatrixRaw.R
BivariateSaturated_MatrixCovCholesky.R
BivariateSaturated_MatrixRawCholesky.R
BivariateSaturated.R <-- not this

smedland's picture
Offline
Joined: 08/04/2009
Hi I was planning on coding

Hi
I was planning on coding up matrix style common and independent pathway scripts but I wanted to check if you've already done this
Also how can I access the demo folder or it currently restricted?
thanks

tbates's picture
Offline
Joined: 07/31/2009
Hi Sarah, No common pathway

Hi Sarah,
No common pathway model yet - would be good.

There's an independent pathway model at

OpenMx/trunk/demo/TwinAnalysis_Multivariate_Matrix_Raw.R

Should be readable as with all the other examples?

Any new scripts you might post here or just email requesting someone to upload into svn for you? Seems the easiest way.

tbates's picture
Offline
Joined: 07/31/2009
In the same vein, i think the

In the same vein, i think the demo/ folder would be easier to navigate if things were named by what they do first that they sort together alphabetically. Any support?

FactorModel_TwoFactor_Matrix_Cov.R
FactorModel_FourFactor_Matrix_Cov.R

instead of
TwoFactorModel_MatrixCov.R
...

FourFactorModel_MatrixCov.R