Behavioral Genetics Models

Posted on
No user picture. Havinginsight Joined: 07/11/2011

Univariate Sex limitation model - fit of statistic output

Hello,

I'm quite new to twin modelling and have come across the following problem.

Before I run my proper model, I'm trying to account for any existing sex differences on the phonetypes of interest.
Am running the following model for each trait:

## Univariate sex-limitation ####RG is FREE####
#
unSexACEModel <- mxModel("unSexACE",
mxModel("ACE",
# ace path coefficients for males and females
mxMatrix("Lower", nrow=nv, ncol=nv, free=TRUE, values=0.2, label="am11", name="am"),

Posted on
No user picture. mritwinanalysis Joined: 10/06/2011

one value per twin pair

Hi,

Is it possible to use the twin ACE model with paired variables (only one value for each twin pair)?

Thank you!

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

How can I calculate the sample size and power?

I read the users' guide of Mx. The sample size and power can be calculated by Mx. But I haven't learned how to use MxGUI. Could OpenMx be used to calculate sample size and power?

Posted on
No user picture. mccutchv Joined: 05/19/2011

submodel testing in bivariate ACE model using ordinal data with different thresholds

I've used OpenMX to duplicate an MX model using bivariate Cholesky of alcohol use disorder symptoms (ordinal variable with 4 thresholds) and remission (bivariate). Results are similar but I cannot figure out how to test a submodel that equates male and female parameters on the threshold variables (first has 4 thresholds, second has just one). Any ideas? From what I've read OpenMX may still be a little dicey with ordinal variables? Script attached.

Posted on
No user picture. jmoser Joined: 04/29/2010

Independent and Common Pathways Models Example Scripts for OpenMx in R

Hi all,

I have been working with OpenMx in R with some success over the past several months after attending the Boulder conference last March. The scripts provided at the workshop have been very helpful, but I can't seem to find examples for independent and common pathways models. Any help would be greatly appreciated.

Thanks,
JM

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

what's wrong with my data?

Hi, everyone.

I was fitting a multivariate model with a general script. The commands didn't have errors. After I mxRun() and summary() my model, it quickly presented the summary. But the problem was that there were no -2ll, AIC, BIC, or any other fitting results, though the number of observations was rightly showed. And it seemed just summarized the dataset, like the min, max, and mean of every variables of the dataset, not the model fit. I guess the values of the variables were not input to the model. But why?

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

sorted order

Hi all,

I was fitting an bivariate ordinal model, after the use of mxFactor(), I made the variables into ordered factors, like this

maxthresh <- 2
mzData$smoking1=mxFactor(mzData$smoking1, levels= c(0:maxthresh))

. After I ran the saturated (or ACE) model, the error appeared. It said that

In model 'Saturated_Fit' 'the thresholds in column 'smoking1' are not in sorted order.

Can anyone tell me what the reason is? Thank you in advance.

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

submodel

Hi, everyone. I found that when construct submodels, such as AE or CE models, the usual commands are like this:

AEModel <- mxModel(ACEFit, name="AE",
mxModel(ACEFit$ACE,
mxMatrix( type="Lower", nrow=nv, ncol=nv, free=F, values=0, name="c" ) # drop c at 0
))

, not this:

AEModel <- mxModel(ACEModel, name="AE",
mxModel(ACEModel$ACE,
mxMatrix( type="Lower", nrow=nv, ncol=nv, free=F, values=0, name="c" ) # drop c at 0
))

Posted on
No user picture. nbarclay Joined: 03/10/2010

Non-linear GxE model

I am running models of GxE where I have age as a continuous moderator of a continuous phenotype. I have initially run the standard linear GxE model as outlined by Purcell (2002). However, I had problems getting this to fit. Out of interest, I ran the non-linear script, and this was successful. In addition to running the full model I have run nested models where the influence of the moderating terms are successively dropped.

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

Does it mean 'no solution'?

Hi, everyone.

I am a new user of OpenMx. I learned a lot from this forum. But I still often bump into difficulties. Here is one.

I write the following commands to model bivariate (binary variables: smoke and drink) ACE Cholesky model.
qlss <- read.table("qlss.csv", header=TRUE, sep=',')

nvar <- 2 #number of varibles
tnvar <- 4 #number of varibles*max family size
nlower <-nvar*(nvar+1)/2 #number of free elements in a lower matrix nvar*nvar
maxcat <- 1

Vars <- c('smoke','drink')
selVars <- paste(Vars,c(rep(1,nvar),rep(2,nvar)),sep="")