cov.int
).
The covariate for interaction (cov.int
) can be SNP genotype (gene-gene interaction) or an environmental factor (gene-environment interaction). Only one
interaction term is allowed. When cov.int
is dichotomous, stratified analyses can be requested by specifying sub
="Y". The covariance between the main
effect (SNP) and the interaction effect is provided in the output when stratified analysis is not requested. Each pedigree is treated as
a cluster, with independence working correlation matrix used in the robust variance estimator.
This function applies the same interaction test to all imputed SNPs in the genotype data.
In each test for interaction, the geese
function from geepack
package is used.
geepack.quant.int.batch.imputed(phenfile,genfile,pedfile,phen,covars,cov.int,sub="N",
outfile,col.names=T,sep.ped=",",sep.phe=",",sep.gen=",")
phenfile
phenfile
covars
cov.int
is dichotomous) geepack.quant.int.batch
function.geepack.quant.int.batch
function but here the SNP data contains imputed genotypes (allele dosages)
that are continuous and range from 0 to 2.
Zeger, S.L. and Liang, K.Y. (1986) Longitudinal data analysis for discrete and continuous outcomes. Biometrics, 42 121--130.
Yan, J and Fine, J. (2004) Estimating equations for association structures. Stat Med, 23 859--874.
## Not run:
# geepack.quant.int.batch.imputed(phenfile="simphen.csv",genfile="simgen.csv",
# pedfile="simped.csv",phen="SIMQT",outfile="simout.csv",col.names=T,covars=c("sex",age"),
# cov.int="sex",sub="Y",sep.ped=",",sep.phe=",",sep.gen=",")
# ## End(Not run)
Run the code above in your browser using DataLab