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

organise_phenotypes - outlier detection and removal #4

Open
explodecomputer opened this issue Aug 10, 2023 · 1 comment
Open

organise_phenotypes - outlier detection and removal #4

explodecomputer opened this issue Aug 10, 2023 · 1 comment
Assignees

Comments

@explodecomputer
Copy link
Contributor

No description provided.

@explodecomputer explodecomputer linked a pull request Aug 10, 2023 that will close this issue
@eleanorsanderson eleanorsanderson self-assigned this Aug 21, 2023
@explodecomputer
Copy link
Contributor Author

explodecomputer commented Nov 10, 2023

  • Use phen definitions to remove outliers due to measurement error
  • Use windsorising to reduce influencers - GoDMC implements quartile +/- 3xIQR to detect outliers and windsorises them to re-value them at 5/95% value.

Update

This won't work with a cohort with multiple ages

  1. Remove outliers based on definition
  2. y ~ age + age^2 - get residuals
  3. Windsorise residuals
  4. Reconstruct phenotype as y_new = age * b1 + age^2 * b2 + new_residuals + intercept

Assumes constant variance with age - does using age quadratic hinder?

Good to try simulating

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

Successfully merging a pull request may close this issue.

2 participants