Categorical Outcomes


Cholesky Decomposition (one continuous and one binary variable)

Missings on the definition variable in a threshold model
I am currently working on a saturated model with 6 groups (mzm, dzm, mzf, dzf, dosfm, dosmf) and a dichotomous outcome variable (with one threshold). See part of the saturated model below.
I have fitted 1 dichotomous definition variable in this model. At the first try it didn't work and after reading one of the previous threads I figured out that this is because the definition variable cannot have missings in OpenMx.

Post removed

Four-Factor Cholesky Decomposition
#vars v1 and v2 are continuous and v3 is ordinal (5 categories), but v4 is dichotomous
______________________________________________________________
nvar <- 4 # number of variables
tnvar <-8 # number of variables*max family size
- Read more about Four-Factor Cholesky Decomposition
- 4 comments
- Log in or register to post comments

Multinomial variable
What are my options when doing twin modeling on a multinomial variable (e.g. what is your favorite wine?: 1) red; 2) white; 3) rosé; 4) sparkling), and there is no hierarchical structure between the categories? That is, how do I best use the cross-twin information that co-twins of sparkling wine drinkers prefer rosé over red wine?
- Read more about Multinomial variable
- 2 comments
- Log in or register to post comments

Ordinal variables with many categories
- Read more about Ordinal variables with many categories
- 5 comments
- Log in or register to post comments

Binary variable in 1.2 beta vs. 1.1.2
Any suggestions? Thanks in advance.
Mike
######### Fitting a binary variable
library(OpenMx)
## Create n=100 binary data with p=.6
my.df <- data.frame(x=c(rep(0,each=40),rep(1,each=60)))
## Starting value for the threshold
st <- qnorm(colMeans(my.df))
my.df$x <- mxFactor(my.df$x, levels=c(0,1))
- Read more about Binary variable in 1.2 beta vs. 1.1.2
- 4 comments
- Log in or register to post comments

Problems expanding univariate liability threshold script to bivariate and multivariate script
I'm fairly new to OpenMx and twin modelling. I have completed the twin modelling summer school at the SGDP this year, where we have learnt how to run a univariate liability threshold model. We have now tried to expand this script to a bivariate model, however we have only been able to make it work until the saturated model. Would anyone be able to let us know how to further expand the script so that it also works for the remaining ACE, AE etc models and what else we need to adjust so that it work for a multivariate (common pathway) liability threshold model.

EFA with binary indicators
- Read more about EFA with binary indicators
- 3 comments
- Log in or register to post comments
Pagination
- Previous page
- Page 3
- Next page