Add more causal thinking into moderation notebook #662
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
ConstantData
->Data
nodes in the pymc modelDefinitely 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.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.📚 Documentation preview 📚: https://pymc-examples--662.org.readthedocs.build/en/662/