[R] egscore - lambda will not go below 1.1
aoife.m.doherty at gmail.com
Fri Dec 11 12:32:29 CET 2015
I want to associate mortality with ~100K SNPs, in 6,500 samples that are
divided up into 60 breeds.
So it's important to account for population stratification in my analysis.
I'm using egscore (the eigenstrat method) for the association (and I've
tried using the polygen and grammar packages too). The problem is that I
cannot get lambda (the inflation factor) to go below the accepted inflation
threshold of 1.1, it seems to converge around 1.5-1.6 when I include an
increasing number of PC axes into the analysis.
Then, I also tried to use the polygen and grammar packages, but the same
Here is the code that I am using:
#Load the data as a gwaa.class
my.geno.data <- load.gwaa.data(phenofile =
#Calculate the IBS matrix
kin<-ibs(my.geno.data, weight="freq", snpfreq=NULL)
# Estimation of polygenic model, This estimates the residuals when the
effect of covariates breeds are factored out.
....so then you found that the lambda was still > 1.1
#So then I used egscore on the output from polygen
....where I iteratively included an increasing number of PC axes (naxes=X),
lambda still > 1.1, and doesn't change if I run egscore on the raw data
instead of the environmental residuals (again iterating through axes), and
it also doesn't change regardless of if I include breed as a co-variate, or
as a stratification variable.
Am I doing something wrong? What else can I try to properly account for
population stratification in an association between trait and SNPs?
[[alternative HTML version deleted]]
More information about the R-help