covariate dataset
rthapa1 opened this issue · comments
Hi,
Thank you for the wonderful package. Is there any way to add population structure and kinship matrix as covariate?
Thanks
You can certainly add principal components as covariates. By kinship matrix, do you mean using it as a variance component? Current package cannot handle random effects or variance component.
Yes, I want to add the kinship matrix as the random effect.
Is there a way to add a population structure matrix instead of PCA as a fixed effect?
By population structure matrix, do you mean the empirical kinship matrix such as the genetic relation matrix (GRM) GG'/S
where G
is the column centered and scaled genotype matrix and S
is number of SNPs? I don't see a way incorporate this matrix as fixed effects.
Thank you Zhou, it looks like MASS package doesn't allow to add random effects.