Categorical Outcomes
abhworthington
Joined: 06/09/2010
Difficulties running Ordinal Twin Model
Hello everyone!
In the process of learning a bit more about how OpenMX works and getting up to speed on twin study methodology, I have been running some of the presentation scripts from the Boulder conference's intro seminar. I'm having a bit of a problem with one of the scripts for binary outcome twin models and was hoping that someone recognized the issue. The script I am using is here: http://ibg.colorado.edu/cdrom2010/rijsdijk/OrdinalTwinAnalysis/Binary/UnivACE_MatrRawOrd.R
- Read more about Difficulties running Ordinal Twin Model
- 3 comments
- Log in or register to post comments
smedland
Joined: 08/04/2009
Ordinal ACE model script is crashing R
Hi
I'm trying to get an ordinal ACE model working but it keeps crashing R.
I'm using OpenMx .5 R 2.10.1 under Windows 7 64 bit
Any suggestions would be greatly appreciated
thanks
s
- Read more about Ordinal ACE model script is crashing R
- 17 comments
- Log in or register to post comments
Fruhling
Joined: 06/09/2010
Constraint on variance of ordinal variables
Hi,
Why is the mxConstraint command not working anymore?
How else is one to constrain the variances to unity?
Thanks.
Fruhling
# Algebra to compute total variances and standard deviations (diagonal only)
mxAlgebra( expression=A+C+E, name="V" ),
mxMatrix( type="Iden", nrow=nv, ncol=nv, name="I"),
mxAlgebra( expression=solve(sqrt(I*V)), name="sd"),
# Constraint on variance of ordinal variables
mxConstraint( alg1="V", "=", alg2="I", name="Var1"),
Error in mxConstraint(alg1 = "V", "=", alg2 = "I", name = "Var1") :
- Read more about Constraint on variance of ordinal variables
- 5 comments
- Log in or register to post comments
mspiegel
Joined: 07/31/2009
mxFactor() interface
The mxFactor() function was introduced in the 0.3.0 release. In the source code repository, it has been updated to accept multiple columns of a data frame. Here is an example of the new functionality:
nthresh1 <- 1
nthresh2 <- 12
data <- read.table("data/mddndzf.dat", na.string=".",
col.names=c("t1neur1", "t1mddd4l", "t2neur1", "t2mddd4l"))
data[,c(1,3)] <- mxFactor(data[,c(1,3)], c(0 : nthresh2))
data[,c(2,4)] <- mxFactor(data[,c(2,4)], c(0 : nthresh1))
- Read more about mxFactor() interface
- Log in or register to post comments
jaimesettle
Joined: 01/24/2010
Ordinal Outcomes in Heterogeneity Models
Hi,
I'm trying to modify a script for a heterogeneity twin model with continuous data in order to fit my ordinal outcome variable. I think I need to make the following changes:
1. Matrices and algebra statements for the expected threshholds for each of my groups
2. Incorporating a threshold statement into my mxModels for each of my groups.
- Read more about Ordinal Outcomes in Heterogeneity Models
- 3 comments
- Log in or register to post comments
winston
Joined: 12/22/2009
getting started
Hi, I'm trying to figure out how to specify models with categorical outcomes. Can you get me started with a modification of your simple example below -- how would you change it to work for categorical outcomes?
require(OpenMx)
data(demoOneFactor)
manifests <- names(demoOneFactor)
latents <- c("G")
factorModel <- mxModel("One Factor",
type="RAM",
manifestVars=manifests,
latentVars=latents,
mxPath(from=latents, to=manifests),
mxPath(from=manifests, arrows=2),
mxPath(from=latents, arrows=2, free=F, values=1.0),
- Read more about getting started
- 8 comments
- Log in or register to post comments
Pagination
- Previous page
- Page 5