Categorical Outcomes

Posted on
No user picture. userzht Joined: 02/19/2011

threshold ACE model with a covariate

I want to fit a threshold ACE model controlling for age. The following is my script. Can anyone tell me what the problem is?

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

Posted on
Picture of user. ebejer Joined: 03/18/2010

specifying thresholds

Hi,

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.

Posted on
No user picture. jenslane Joined: 03/05/2010

CIs in old Mx for Univariate Ordinal Model

Hello -
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

Posted on
Picture of user. wuhao_osu Joined: 09/07/2010

Contingency table as data

Hi,

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

Posted on
No user picture. svrieze Joined: 01/03/2010
Posted on
No user picture. pgseye Joined: 10/13/2009

Bivariate Ordinal ACE model with different thresholds

Hi All,

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.

Posted on
Picture of user. tbates Joined: 07/31/2009

Error: Objective function returned a value of NaN.

What advice should we give on this error with ordinal data. Reducing the number of categories appears to help at times, but what systematic ways are there to ensure that the data don't produce non-positive definite matrices during the run?

Posted on
No user picture. Derek Joined: 02/11/2011

fit a multivariate latent trait model

Hello, I need to fit a multivariate latent trait model with categorical outcomes as follows. I tried many standard sofware but none of them worked well. I am not sure if OpenMx can do it or not.

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

Posted on
Picture of user. mdewey Joined: 01/21/2011

Specifying using paths with categorical manifests

I have been working my way through a number of examples from a couple of books implementing them in OpenMx in order to learn how it works. So far so good. I now want to move on to using categorical/ordinal manifest variables. The examples I have found on this web site either in the formal documentation or in the forums all seem to do this using the matrix specification. Is there any fatal flaw in trying to do this using the path type specification (which I find more congenial)?
Posted on
Picture of user. angelver Joined: 10/01/2010

controlling for sex/age in saturated model with categorical outcomes

Hello everybody,
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!