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 more causal thinking into moderation notebook #662

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

drbenvincent
Copy link
Contributor

@drbenvincent drbenvincent commented May 16, 2024

This PR partially addresses #555 in that it adds more causal thinking into the existing moderation notebook, but not the mediation notebook. There is more that I want to do to this notebook, but unfortunately it will have to wait a little while. But I think the updates so far are worth a merge.

  • Add in the introduction that we will make a distinction between statistical and causal ideas.
  • Ensure the ordering of terms is consistent in all equations
  • Add a section on data visualisation
  • 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’s a lot to process! Pitfalls of popular path models. Advances in Methods and Practices in Psychological Science, 5(2), 25152459221095827. I've added this into Further Reading, but there isn't much concrete actionable information in this paper to add here.
  • 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. I've added this into Further Reading, but there isn't much concrete actionable information in this paper to add here.
  • 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).
  • Add those references to the Further Reading section
  • Check updates to style guide


📚 Documentation preview 📚: https://pymc-examples--662.org.readthedocs.build/en/662/

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@drbenvincent drbenvincent marked this pull request as draft May 16, 2024 20:10
@drbenvincent drbenvincent changed the title Add more causal thinking into moderation notebook Add more causal thinking into moderation notebook (#555) May 17, 2024
@drbenvincent drbenvincent changed the title Add more causal thinking into moderation notebook (#555) Add more causal thinking into moderation notebook May 17, 2024
@drbenvincent drbenvincent marked this pull request as ready for review October 20, 2024 13:44
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

Successfully merging this pull request may close these issues.

1 participant