You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plink2-users
Hi,
I was just wondering if there's a way to extract residuals from a linear regression performed in plink2?
I tried looking under the various commands but I can't find anything.
All the best,
Lindsay
Christopher Chang
unread,
Nov 22, 2021, 3:06:11 PM11/22/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plink2-users
Not directly, but it should not be difficult to compute them from the genotype data, regression coefficients (you may need to add --glm's "intercept" modifier), and phenotype/covariates.
Lindsay Melhuish
unread,
Nov 22, 2021, 3:44:49 PM11/22/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plink2-users
I'm sorry -I don't follow. So I want to extract regression coefficients and then somehow I can convert these to residuals?
Christopher Chang
unread,
Nov 22, 2021, 3:59:48 PM11/22/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plink2-users
A residual is the difference between the estimated phenotype value (which you compute from the regression coefficients, genotype value, and covariates) and the actually-observed phenotype value.