Behavioral Genetics Models

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

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!
- Read more about one value per twin pair
- 4 comments
- Log in or register to post comments

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?

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.

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

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?
- Read more about what's wrong with my data?
- 6 comments
- Log in or register to post comments

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.
- Read more about sorted order
- 2 comments
- Log in or register to post comments

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
))
- Read more about submodel
- 2 comments
- Log in or register to post comments

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.
- Read more about Non-linear GxE model
- 3 comments
- Log in or register to post comments

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="")
- Read more about Does it mean 'no solution'?
- 14 comments
- Log in or register to post comments
Pagination
- Previous page
- Page 30
- Next page