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

Improved time series operators #28

Open
lacava opened this issue Apr 13, 2023 · 0 comments
Open

Improved time series operators #28

lacava opened this issue Apr 13, 2023 · 0 comments
Assignees

Comments

@lacava
Copy link
Member

lacava commented Apr 13, 2023

Computable Phenotypes can represent quite complex relations, such as this (portion of the) definition for resistant hypertension:

Has ≥ 4 simultaneous matching med classes on ≥ 2 occasions, ≥ 1 month apart.

The model must

  • aggregate time series
  • filter time series to minimum intervals
  • select time series matching a class of drugs
  • threshold the values of the time series
  • threshold the counts of the time series

For this example, wewould updates to operators to get this to work:

  • Sum operator that takes nary TimeSeries operators and returns a time series object
    • It would essentially be a “grouped” sum, where values are grouped by unique times and then the operator is applied
  • Some sort of filter/mask operator that filters a TimeSeries’s samples based on a condition
    • Interval: returns the time between events
    • Values: returns the time series values
  • FilterValues, FilterTimes, FilterIntervals
    • Signature: TimeSeries<T>TimeSeries<T>
    • operators with a threshold (stored in w)
    • heuristic way to determine threshold? (number of samples filtered in cases versus controls?)
    • probably the thresholds would have to be determined stochastically
@lacava lacava self-assigned this Apr 13, 2023
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

1 participant