Home > Community > Adjusting phenotypes by regressing out covariates
Upvote

31

Downvote
+ Biochemistry
+ Gwas
+ Statistics
Posted by
Alan Wood

Adjusting phenotypes by regressing out covariates

Dave G. Howell  Follow

Instead of the "observed phenotype", it's asking for a "corrected phenotype", which is the residuals from pheno ~ covariates. In R, one would get that as follows:

fit = lm(phenotype ~ covariates, data)corrected_phenotype = resid(fit)

Of course covariates is just a place hold for something like age + gender or something along those lines.

More

Upvote

VOTE

Downvote
Harold Shaw  Follow
Hi @Devon Ryan, I have a question regarding phenotype. Will you be able to help. only if you have time. Else you can ignore it. More
Upvote

VOTE

Downvote
Joseph Newcomer  Follow
bioinformatics.stackexchange.com/questions/11028/…More
Upvote

VOTE

Downvote