Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

covariates #43

Open
ZhiyiZhu0226 opened this issue Feb 21, 2023 · 5 comments
Open

covariates #43

ZhiyiZhu0226 opened this issue Feb 21, 2023 · 5 comments

Comments

@ZhiyiZhu0226
Copy link

Hi, I was wondering why is agesex, agesex^2 included as covariates. Is age and sex not enough to account as the covariates?

@robwwilliams
Copy link

robwwilliams commented Feb 21, 2023 via email

@ZhiyiZhu0226
Copy link
Author

Hi, thanks for responding! For the UKBB GWAS, imputed-v3 Association model (https://github.com/Nealelab/UK_Biobank_GWAS), it was stated that the following are included as covariates: 1st 20 PCs + sex + age + age^2 + sex * age + sex * age^2. My question is why are the last two terms, sex * age and sex * age^2, are included as covariates. I have rarely seen other studies that include combinations of age and sex as covariates (I have seen one that uses age-by-sex as one of their covariates: https://www.nature.com/articles/s41586-021-04103-z), and I'm curious about the motivation behind using those two covariates. What variance are those covariates trying to account for?

@robwwilliams
Copy link

robwwilliams commented Feb 22, 2023 via email

@ZhiyiZhu0226
Copy link
Author

Thanks for the answer! I have a follow up question: how is the age * sex interaction calculated? Currently I'm encoding females as 0 and males as 1. So is the age * sex interaction for a 56 year old female 0 (or for a 47 year old male, 47), or is the interaction calculated in some more complicated way? It doesn't make much sense to me to multiple a categorical variable (sex) and a quantitative variable (age)

@robwwilliams
Copy link

robwwilliams commented Feb 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants