OHDSI / OHDSI/FeatureExtraction
Add function for creating interactions between covariates
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 74
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes we'd want to add interaction terms to a model. For example, if we believe our propensity model may change over time, we may want to add interactions between all existing covariates and index year. These interaction terms themselves would just be new covariates from the perspective of the model fitting.
For example, the interaction between 'T2DM in the last 365 days' and 'index year: 2022' would be the covariate 'T2DM in the last 365 days AND index year: 2022', which would have the value 1 if T2DM was observed in the last 365 days and the index year is 2022.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how the package currently represents covariates and how they are passed to model fitting. Define how interactions between existing covariates and index year should be exposed as new covariates, then verify the resulting values against the T2DM and index-year example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100