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

New example: ANCOVA for confounding #187

Open
2 tasks
drbenvincent opened this issue May 22, 2023 · 0 comments
Open
2 tasks

New example: ANCOVA for confounding #187

drbenvincent opened this issue May 22, 2023 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@drbenvincent
Copy link
Collaborator

drbenvincent commented May 22, 2023

The existing ANCOVA notebook focusses clearly on a pre-test post-test experimental design. However, the ANCOVA style approach can also be used in situations where we have:

  • a categorical treatment variable $Z$
  • a continuous confounder $C$
  • a continuous outcome $Y$

Screenshot 2023-05-22 at 11 08 43

  • Add an example for this situation
  • Change the kwarg pretreatment_variable_name. This needs to be a more general name. We'll also need to update the existing ANCOVA example to reflect this change in kwarg name. This would only be required if we ended up using the PrePostNEGD class for generic ANCOVA or 'controlling for confounders', which doesn't make any sense.

Some thought needs to go into this. At the moment the pre/post ANCOVA example uses the PrePostNEGD class. I think this is reasonable for that specific situation, but if we want to just to generic ANCOVA, or a 'controlling for confounders' approach, then we'd want to use a different class.

@drbenvincent drbenvincent added the documentation Improvements or additions to documentation label May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant