You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/causal_inference/moderation_analysis.ipynb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -959,7 +959,7 @@
959
959
"\n",
960
960
"Readers should be aware that there are statistical issues around mean-centering and multicollinearity. The original [SPSS Moderation Regression Tutorial](https://www.spss-tutorials.com/spss-regression-with-moderation-interaction-effect/) did mean-centre the predictor variables $x$ and $m$. This will have a downstream effect upon the interaction term $x \\cdot m$.\n",
961
961
"\n",
962
-
"One effect of mean centering is to change the interpretation of the parameter estimates. In this notebook, we did not mean center the variables which will affect the parameter estimates and their interpretation. It is not that one is correct or incorrect, but one must be cognisant of how mean-centering (or not) affects the interpretation of parameter estimates. Readers are again directed to {cite:t}`hayes2017introduction` for a more in-depth consideration of mean-centering in moderation analyses.\n",
962
+
"One effect of mean centering is to change the interpretation of the parameter estimates. In this notebook, we did not mean center the vriables which will affect the parameter estimates and their interpretation. It is not that one is correct or incorrect, but one must be cognisant of how mean-centering (or not) affects the interpretation of parameter estimates. Readers are again directed to {cite:t}`hayes2017introduction` for a more in-depth consideration of mean-centering in moderation analyses.\n",
963
963
"\n",
964
964
"Another issue, particularly relevant to moderation analysis is [multicollinearity](https://en.wikipedia.org/wiki/Multicollinearity), where one predictor variable is well-described as a linear combination of other predictors. This is clearly the case in moderation analysis as the interaction term $m \\cdot x$ is by definition a linear combination of $x$ and $m$.\n",
965
965
"\n",
@@ -993,7 +993,7 @@
993
993
"- Further information about the 'moderation effect', or what {cite:t}`mcclelland2017multicollinearity` called a spotlight graphs, can be found in {cite:t}`bauer2005probing` and {cite:t}`spiller2013spotlights`. Although these papers take a frequentist (not Bayesian) perspective.\n",
994
994
"- {cite:t}`zhang2017moderation` compare maximum likelihood and Bayesian methods for moderation analysis with missing predictor variables.\n",
995
995
"- Multicollinearity, data centering, and linear models with interaction terms are also discussed in a number of prominent Bayesian text books {cite:p}`gelman2013bayesian, gelman2020regression,kruschke2014doing,mcelreath2018statistical`.\n",
996
-
"- Readers interested in issues of causality around moderation are directed to {cite:t}`rohrer2022process`, {cite:t}`rohrer2018thinking`, and {cite:t}`rohrer2021precise`."
996
+
"- Readers interested in issues of causality around moderation are directed to {cite:t}`rohrer2018thinking`, {cite:t}`rohrer2021precise`, and {cite:t}`rohrer2022process`."
997
997
]
998
998
},
999
999
{
@@ -1007,7 +1007,7 @@
1007
1007
"- Updated by Benjamin T. Vincent in March 2022\n",
1008
1008
"- Updated by Benjamin T. Vincent in February 2023 to run on PyMC v5\n",
1009
1009
"- Updated to use `az.extract` by [Benjamin T. Vincent](https://github.com/drbenvincent) in February 2023 ([pymc-examples#522](https://github.com/pymc-devs/pymc-examples/pull/522))\n",
1010
-
"- Updated by [Benjamin T. Vincent](https://github.com/drbenvincent) in June 2024 to incorporate causal concepts"
1010
+
"- Updated by [Benjamin T. Vincent](https://github.com/drbenvincent) in Oct 2024 ([pymc-examples#662](https://github.com/pymc-devs/pymc-examples/pull/662))"
Copy file name to clipboardExpand all lines: examples/causal_inference/moderation_analysis.myst.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -434,7 +434,7 @@ The expression $\beta_1 + \beta_2 \cdot \text{moderator}$ defines the rate of ch
434
434
435
435
Readers should be aware that there are statistical issues around mean-centering and multicollinearity. The original [SPSS Moderation Regression Tutorial](https://www.spss-tutorials.com/spss-regression-with-moderation-interaction-effect/) did mean-centre the predictor variables $x$ and $m$. This will have a downstream effect upon the interaction term $x \cdot m$.
436
436
437
-
One effect of mean centering is to change the interpretation of the parameter estimates. In this notebook, we did not mean center the variables which will affect the parameter estimates and their interpretation. It is not that one is correct or incorrect, but one must be cognisant of how mean-centering (or not) affects the interpretation of parameter estimates. Readers are again directed to {cite:t}`hayes2017introduction` for a more in-depth consideration of mean-centering in moderation analyses.
437
+
One effect of mean centering is to change the interpretation of the parameter estimates. In this notebook, we did not mean center the vriables which will affect the parameter estimates and their interpretation. It is not that one is correct or incorrect, but one must be cognisant of how mean-centering (or not) affects the interpretation of parameter estimates. Readers are again directed to {cite:t}`hayes2017introduction` for a more in-depth consideration of mean-centering in moderation analyses.
438
438
439
439
Another issue, particularly relevant to moderation analysis is [multicollinearity](https://en.wikipedia.org/wiki/Multicollinearity), where one predictor variable is well-described as a linear combination of other predictors. This is clearly the case in moderation analysis as the interaction term $m \cdot x$ is by definition a linear combination of $x$ and $m$.
440
440
@@ -464,7 +464,7 @@ But readers are strongly encouraged to read {cite:t}`mcclelland2017multicollinea
464
464
- Further information about the 'moderation effect', or what {cite:t}`mcclelland2017multicollinearity` called a spotlight graphs, can be found in {cite:t}`bauer2005probing` and {cite:t}`spiller2013spotlights`. Although these papers take a frequentist (not Bayesian) perspective.
465
465
- {cite:t}`zhang2017moderation` compare maximum likelihood and Bayesian methods for moderation analysis with missing predictor variables.
466
466
- Multicollinearity, data centering, and linear models with interaction terms are also discussed in a number of prominent Bayesian text books {cite:p}`gelman2013bayesian, gelman2020regression,kruschke2014doing,mcelreath2018statistical`.
467
-
- Readers interested in issues of causality around moderation are directed to {cite:t}`rohrer2022process`, {cite:t}`rohrer2018thinking`, and {cite:t}`rohrer2021precise`.
467
+
- Readers interested in issues of causality around moderation are directed to {cite:t}`rohrer2018thinking`, {cite:t}`rohrer2021precise`, and {cite:t}`rohrer2022process`.
468
468
469
469
+++
470
470
@@ -473,7 +473,7 @@ But readers are strongly encouraged to read {cite:t}`mcclelland2017multicollinea
473
473
- Updated by Benjamin T. Vincent in March 2022
474
474
- Updated by Benjamin T. Vincent in February 2023 to run on PyMC v5
475
475
- Updated to use `az.extract` by [Benjamin T. Vincent](https://github.com/drbenvincent) in February 2023 ([pymc-examples#522](https://github.com/pymc-devs/pymc-examples/pull/522))
476
-
- Updated by [Benjamin T. Vincent](https://github.com/drbenvincent) in June 2024 to incorporate causal concepts
476
+
- Updated by [Benjamin T. Vincent](https://github.com/drbenvincent) in Oct 2024 ([pymc-examples#662](https://github.com/pymc-devs/pymc-examples/pull/662))
0 commit comments