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

Propose making mediation and moderation notebooks more causal #555

Open
11 tasks
drbenvincent opened this issue Jul 4, 2023 · 2 comments
Open
11 tasks

Propose making mediation and moderation notebooks more causal #555

drbenvincent opened this issue Jul 4, 2023 · 2 comments
Assignees
Labels
proposal New notebook proposal still up for discussion

Comments

@drbenvincent
Copy link
Contributor

drbenvincent commented Jul 4, 2023

I propose moving the Bayesian mediation analysis and Bayesian moderation analysis notebooks from the Case Studies section to the Causal Inference section of the docs.

Both notebooks would be heavily edited to incorporate more of a causal flavour. Important changes could include:

  • need to express caution over unobserved confounding variables
  • coverage of the kinds of tests you can do (e.g. implied independence or conditional independence from the causal DAG structure)

This would also help trim down the bloat of the currently rather large size of the Case Studies section.

Definitely open to recommendations or feedback about this idea.

Plans for Moderation notebook updates [update 2024 May 13th]

  • Add in the introduction that we will make a distinction between statistical and causal ideas.
  • Clarify that we are focussing on observational data and don't consider experimental/interventional approaches
  • We currently have a “statistical” diagram, but we should add a causal DAG
  • Discuss the DAG. If this is our entire causal DAG then we have no real complexities in terms of backdoor paths etc. We can simply collect data and make inferences about the strengths of the causal relationships given the DAG and assumptions (e.g. linearity of relationships).
  • ConstantData -> Data nodes in the pymc model
  • Clarify that the “Related issues: mean centering and multicollinearity” section comes from the statistical literature
  • Definitely bring in insights from Rohrer, J. M., Hünermund, P., Arslan, R. C., & Elson, M. (2022). That’sa lot to process! Pitfalls of popular path models. Advances in Methods and Practices in Psychological Science, 5(2), 25152459221095827.
  • Maybe bring in insights from Wu, A. D., & Zumbo, B. D. (2008). Understanding and using mediators and moderators. Social Indicators Research, 87, 367-392.
  • Almost certainly add this reference as a good primer for causal thinking with observational data: Rohrer, Julia M. "Thinking clearly about correlations and causation: Graphical causal models for observational data." Advances in methods and practices in psychological science 1.1 (2018): 27-42.
  • Another useful resource: Rohrer, J. M., & Arslan, R. C. (2021). Precise answers to vague questions: Issues with interactions. Advances in Methods and Practices in Psychological Science, 4(2).
  • Check updates to style guide
@drbenvincent drbenvincent added the proposal New notebook proposal still up for discussion label Jul 4, 2023
@drbenvincent
Copy link
Contributor Author

It will presumably break any external inbound links because of the URL change.

@OriolAbril
Copy link
Member

It will presumably break any external inbound links because of the URL change.

It should not be the case. We already have "rediraffe" extension set up, so we should add the "path movement mapping" to https://github.com/pymc-devs/pymc-examples/blob/main/examples/conf.py#L155 for sphinx to set up redirects automatically

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proposal New notebook proposal still up for discussion
Projects
None yet
Development

No branches or pull requests

2 participants