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

Add function for creating interactions between covariates #170

Open
schuemie opened this issue Jun 21, 2022 · 0 comments
Open

Add function for creating interactions between covariates #170

schuemie opened this issue Jun 21, 2022 · 0 comments

Comments

@schuemie
Copy link
Member

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.

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

No branches or pull requests

1 participant