I am trying to get the covariance matrix for the coefficients obtained from GWAS, but I couldn’t find any way to obtain it directly from PLINK (please correct me if I’m wrong).
So I tried extracting the genotype data from a PLINK bfile and running the regression in R. For the additive model, I obtained a similar but not identical result, while for the dominance deviation model, I couldn’t get a comparable result.
Based on my understanding, --glm simply performs a linear regression, while --glm genotypic also performs a linear regression but adds another covariate that codes heterozygous sites as 1 and homozygous sites as 0.
I’ve attached the code, results and the log file for the exported allele counts and GWAS for your reference. Could you please let me know where I did wrong? Thanks in advance for your help!
--
You received this message because you are subscribed to the Google Groups "plink2-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plink2-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/plink2-users/5b8ef33c-77c4-446d-b61b-b9a06292d5c8n%40googlegroups.com.
I figured out the problem -- I coded the missing phenotype as “-9” when running the GWAS but didn’t remove those individuals when running the regression in R...