glmer
function from package lme4 is used.
glmm.EC(snp,phen,test.dat,covar,chr)test.dat test.dat ntotalntotalbetaglmm.EC function fits a generalized linear mixed effects model (GLMM)
with logistic link that treats each pedigree as a cluster to test association between
a binary trait and a single/pooled genetic variant with additive model. The
trait-variant association test is carried out by the glmer function from package
lme4. P-value from likelihood ratio test (LRT) is reported. This function is
called in glmm.ped function to test all single/pooled variants.
## Not run:
# glmm.EC(snp=rsnps.dat[,"snp1"],phen="disease",test.dat=rsnps.dat,
# covar=c("sex"),chr=1)
# ## End(Not run)
Run the code above in your browser using DataLab