-
Notifications
You must be signed in to change notification settings - Fork 35
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
Age for buddy-matching #240
Comments
If similar code is ported to a phenotype selection for future projects, I would personally find
cleaner, more legible and potentially less computationally intense as compared with Phenotype_Data_Acquisition/PhenotypeScripts/N3C_phenotype_omop_redshift.sql Lines 824 to 881 in 6d26382
it would be further "optimized" by eliminating the text labels entirely and just collapsing division result greater than 18 into 18 ...but I acknowledge that the current syntax gets the job done |
Currently the age of patients and their matched control is determined from the date-of-query and then binned into 5 year wide groupings.
However, this allows for a somewhat more non-deterministic pairing of patients and their matched negative controls than is likely intended, as people will age into a new age bracket at a different time than their negative controls. Buddies that are produced one year for a patient may not be eligible buddies in the subsequent year (and conversely, a new set of buddies may be made available).
Suggestion: use a fixed date as a reference for age determination for buddy matching. Study start date or projected study end date would be "logical" reference dates.
The text was updated successfully, but these errors were encountered: