Skip to content

fix silly typo in mediation example notebook #211

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

Merged
merged 4 commits into from
Aug 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/case_studies/mediation_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"This notebook covers Bayesian [mediation analysis](https://en.wikipedia.org/wiki/Mediation_(statistics) ). This is useful when we want to explore possible mediating pathways between a predictor and an outcome variable.\n",
"\n",
"It is important to note that the approach to moderation analysis has evolved over time. This notebook will attempt to use best practice as of now, and is heavily influenced by the approach of Hayes (2018) as set out in his textbook \"Introduction to Mediation, Moderation and Conditional Process Analysis.\""
"It is important to note that the approach to mediation analysis has evolved over time. This notebook will attempt to use best practice as of now, and is heavily influenced by the approach of Hayes (2018) as set out in his textbook \"Introduction to Mediation, Moderation and Conditional Process Analysis.\""
]
},
{
Expand Down Expand Up @@ -48,9 +48,9 @@
"id": "tough-drinking",
"metadata": {},
"source": [
"## The moderation model\n",
"## The mediation model\n",
"\n",
"The simple moderation model is very simple where $m$ is a linear function of $x$, and $y$ is a linear function of $x$ and $m$:\n",
"The simple mediation model is very simple where $m$ is a linear function of $x$, and $y$ is a linear function of $x$ and $m$:\n",
"\n",
"$$\n",
"m_i \\sim \\mathrm{Normal}(i_M + a \\cdot x_i, \\sigma_M)\n",
Expand Down Expand Up @@ -863,7 +863,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.9.6"
}
},
"nbformat": 4,
Expand Down