lmekin function from package coxme is used.
lme.EC(snp,phen,test.dat,covar,kmat,chr)test.dat test.dat ntotalntotalbetalme.EC function fits a Linear Mixed Effects model (LME) that uses
relationship coefficient matrix as within pedigree correlation matrix to test
association between a continuous phenotype and a single/pooled genetic variant
with additive model. The trait-SNP association test is carried out by the
lmekin function from package coxme. This function is called in
lme.ped function to test all single/pooled variants.
Abecasis, G. R., Cardon, L. R., Cookson, W. O., Sham, P. C., & Cherny, S. S (2001). Association analysis in a variance components framework. Genet Epidemiol, 21 Suppl 1, S341-S346.
## Not run:
# lme.EC(snp=rsnps.dat$counts,phen="trait",test.dat=rsnps.dat,
# covar=c("age","sex"),kmat=kmat,chr=1)## End(Not run)
Run the code above in your browser using DataLab