demo files

Posted on
Picture of user. tbates Joined: 07/31/2009
Forums
for talking about the demo files
Replied on Mon, 08/24/2009 - 13:50
Picture of user. tbates Joined: 07/31/2009

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

Replied on Mon, 08/24/2009 - 17:37
Picture of user. tbates Joined: 07/31/2009

In reply to by tbates

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

Replied on Thu, 08/27/2009 - 12:46
Picture of user. tbates Joined: 07/31/2009

In reply to by smedland

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.

Replied on Tue, 08/25/2009 - 08:05
Picture of user. tbates Joined: 07/31/2009

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")
)

Replied on Thu, 09/03/2009 - 09:13
Picture of user. tbates Joined: 07/31/2009

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?