Closed ConnieXuhm closed 3 years ago
Thank you for your interest in GMMAT. For SNP x covariate interactions, please check out the glmm.gei
function in our companion package MAGEE.
Best, Han
Thank you for your interest in GMMAT. For SNP x covariate interactions, please check out the
glmm.gei
function in our companion package MAGEE.Best, Han
Thanks a lot! I will try.
Hi Chen, I followed your suggestions using MAGEE for longitudinal study. However, both my data and the example data meet an error. Here I use example data (pheno2) as an example.
library(GMMAT)
library(MAGEE)
data(example)
attach(example)
model0<-glmmkin(y.trend~sex+time,data=pheno2,id="id",kins="GRM", family=gaussian(link="inverse")) #it runs normal
infile<-system.file("extdata","geno.gds","package="MAGEE")
gds_outfile<-tempfile()
glmm.gei(model0,interaction='sex',geno.file=infile,outfile=gds_outfile)
Here is the error: Error in as(x,"matrix")[i,,drop=drop]:subscript out of bounds
Also, I can run non-longitudinal data smoothly in pheno file. I tried to change interaction variable as "time", or change the family module, which were no change of the error. Could you help me with this? Thanks again!
Cross-posted in MAGEE.
Dear @hanchenphd @agilly @duytpm16 , I am using glmmkin and glmm.score for longitudinal study. I wanna see if there is a SNP*time interaction to reveal the effect of disease progression, and I wonder if I could put the interaction module into equation. Here is my present code:
I think may be I should change my equation to : SEVERE~time+AGE+SEX+SNP+SNP*time+(1+time|id), just like the lme4 does. But how can I achieve this in GMMAT? Looking forward to your reply, thanks so much!