Univariate Binary Model with multiple covariates that are binary, categorical, and continuous.

Posted on
Picture of user. Rolandgem Joined: 10/24/2015
This is my first attempt at binary univariate models with multiple covariates. When i fit the saturated model I get the following error which I am not sure what it actually means:

Error in runHelper(model, frontendStart, intervals, silent, suppressWarnings, :
MxComputeConfidenceInterval: reference fit is not finite

My guess is that it has something to do with the values or bounds?
What are some guidelines for choosing values when you have binary variables (as well as a mix of binary and continuous covariates)?

I have attached the code and a sample of my data. Since this is my first attempt at modelling twins I would greatly appreciate any comments regarding the format of my data and feedback regarding my code.

Thanks :)

Replied on Wed, 10/28/2015 - 13:39
Picture of user. Rolandgem Joined: 10/24/2015

In reply to by jpritikin

I did as you suggested (please see below). So does this mean my starting values are wrong? What is the rule of thumb when choosing these values for binary data?

> # 1) RUN Saturated Model
>
> SatFit <- mxRun(SatModel, intervals=FALSE)
Running Sat with 10 parameters
Warning message:
In model 'Sat' Optimizer returned a non-zero status code 10. Starting values are not feasible. Consider mxTryHard()
> (SatSumm <- summary(SatFit))
Summary of Sat

Starting values are not feasible. Consider mxTryHard()

free parameters:
name matrix row col Estimate lbound ubound
1 BaTH MZ.BageTH 1 1 0.1
2 BsTH MZ.BsexTH 1 1 0.1
3 BpTH MZ.BphuTH 1 1 0.1
4 BparTH MZ.BpartTH 1 1 0.1
5 Tmz11 MZ.ThMZ 1 1 0.8 -2 2
6 imz11 MZ.ThMZ 1 2 1.0 0.001 2
7 MZ.expCorMZ[1,2] MZ.expCorMZ ebent1 ebent2 0.6 -0.99 0.99
8 Tdz11 DZ.ThDZ 1 1 0.8 -2 2
9 idz11 DZ.ThDZ 1 2 1.0 0.001 2
10 DZ.expCorDZ[1,2] DZ.expCorDZ ebent1 ebent2 0.3 -0.99 0.99

observed statistics: 16568
estimated parameters: 10
degrees of freedom: 16558
fit value ( -2lnL units ): Inf
number of observations: 8284
Information Criteria:
| df Penalty | Parameters Penalty | Sample-Size Adjusted
AIC: Inf Inf NA
BIC: Inf Inf Inf
CFI: NA
TLI: 1 (also known as NNFI)
RMSEA: 0 [95% CI (NA, NA)]
Prob(RMSEA <= 0.05): NA
OpenMx does not recommend using GFI, AGFI, NFI (aka Bentler-Bonett), or SRMR:
See help(mxSummary) for why.
Some of your fit indices are missing.
To get them, fit saturated and independence models, and include them with
summary(yourModel, refModels=...)
See help(mxRefModels) for an easy way of doing this in many cases.
timestamp: 2015-10-28 17:36:25
Wall clock time (HH:MM:SS.hh): 00:00:00.64
optimizer: SLSQP
OpenMx version number: 2.3.1
Need help? See help(mxSummary)

Replied on Mon, 11/02/2015 - 23:55
Picture of user. AdminNeale Joined: 03/01/2013

In reply to by Rolandgem

Looking at it, I think the starting values are ok. What looks wrong to me is that the definition variables sex and age have been converted to factors. Only the dependent ordinal variables should be mxFactor()'d. Does that help? Sorry for slow response...
Replied on Thu, 11/05/2015 - 14:33
Picture of user. AdminRobK Joined: 01/24/2014

In reply to by Rolandgem

I don't think I've ever tried to use a factor as a definition variable, and I'm pretty sure I've never seen it done, either. Sex and "partner" are just binary, right? You should be fine simply coding each as a numeric vector of 0s and 1s.

Could you say more about the crash you encountered? It's always possible it's due to a bug, and even if it isn't, we can help you troubleshoot.

Replied on Tue, 07/05/2016 - 18:58
No user picture. bhuibregtse Joined: 03/06/2014

In reply to by AdminRobK

Hey there,

I have two projects where I would like to use ordinal or categorical variables as covariates.

In the simple case, the there is one covariate (5 non-ordered categories). Another model includes age (continuous), sex (I understand 0-1 coding is fine here), and two non-ordered categorical variables.

My search keep leading me to this thread.. any updates?

Thanks!
Brooke