Categorical Outcomes

threshold ACE model with a covariate
ACE_Cholesky_Model <- mxModel("ACE_Cholesky",
mxModel("ACE",
# Matrices a, c, and e to store a, c, and e path coefficients
mxMatrix( type="Lower", nrow=nv, ncol=nv, free=TRUE, values=.6,label=c("a11", "a21", "a22"), name="a" ),
mxMatrix( type="Lower", nrow=nv, ncol=nv, free=TRUE, values=.6,label=c("c11", "c21", "c22"), name="c" ),
- Read more about threshold ACE model with a covariate
- 6 comments
- Log in or register to post comments

specifying thresholds
I am not sure how to specify thresholds when > 1, I was hoping for some help. I have run the ACE models with one threshold (binary response data) successfully and have tried to incorporate the correct code for thresholds >1 into my script from several different scripts but have had no luck.
It seems that I am not putting the right information into dimnames? My data contains one variable with 6 levels, for each twin. I'm also not sure how the specified matrices combine and any tips on how that occurs would be greatly appreciated.
- Read more about specifying thresholds
- 14 comments
- Log in or register to post comments

CIs in old Mx for Univariate Ordinal Model
I have an old Mx question that I was hoping to get help with. I was able to get an ordinal univariate model to run, but am now having a difficult time getting the confidence intervals to work. The error statement I am receiving is:
Hmmmm. The lower bound for this integral is greater than or equal to the upper bound.
This will cause problems with the likelihood function.
Please check your thresholds are bounded appropriately
- Read more about CIs in old Mx for Univariate Ordinal Model
- 1 comment
- Log in or register to post comments

Contingency table as data
Is there an efficient way to input contingency tables as data? mxData does not seem to allow such a structure. If the raw data must be input, is there a way to assign multiple counts to an individual case? Thanks.
Hao
- Read more about Contingency table as data
- 3 comments
- Log in or register to post comments

Continuous and categorical variables in same model?
-Scott

Bivariate Ordinal ACE model with different thresholds
I'd like to run an ACE model - one variable is categorical (2 thresholds) and the other is really continuous, but I thought I'd recode it into deciles (as the joint continuous/categorical implementation in OpenMx 1.1 seems a little way off - and I wouldn't know where to start with the coding).
I think can handle the case of the same number of thresholds across variables, but I was wondering if anyone had a script allowing for a differing number of thresholds for variables, that they'd be willing to share? +/- Independent/Common Pathways.

Error: Objective function returned a value of NaN.

fit a multivariate latent trait model
Prob (Y_gki <= c_l | Z_gi, U_gi)
= r_gk + (1 - r_gk)/(1 + exp(-(alpha_kl + beta_k*Z_gi + delta_k*U_gi)))
where
g = 1,2 indicating groups,
k = 1,..., K indicating K instrument items,
i indicating the subject number in each group,
so Y_gki is the response for item k from subject i in group g;
each item has a Likert scale with responses 0-5
- Read more about fit a multivariate latent trait model
- 1 comment
- Log in or register to post comments

Specifying using paths with categorical manifests

controlling for sex/age in saturated model with categorical outcomes
I've attached a script with a saturated model for a categorical (3 categories 0,1 and 2). Now I am wondering how to know if I have to control for sex/age in my next analysis (ACE/ADEmodel). I guess I would have to add sex(i also have opposite sex pairs) and age(continous) to the saturated model and see if it makes a significant difference of fit if i drop them or constraint them to be equal.However, I have no idea how to get these variables in this saturated model. Do any of you have any tips where to find this or how to get started?
Thank you!
Pagination
- Previous page
- Page 4
- Next page