Skip to content

Commit 904fb16

Browse files
Fix Error in A Primer on Bayesian Methods for Multilevel Modeling (#562)
* Rename floor_ind to floor_idx * Switch from `floor_idx` to `floor_ind` * Switch from `floor_idx` to `floor_ind` in ipynb
1 parent d6df689 commit 904fb16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/case_studies/multilevel_modeling.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@
688688
"coords = {\"county\": mn_counties}\n",
689689
"\n",
690690
"with pm.Model(coords=coords) as unpooled_model:\n",
691-
" floor_idx = pm.MutableData(\"floor_ind\", floor_measure, dims=\"obs_id\")\n",
691+
" floor_ind = pm.MutableData(\"floor_ind\", floor_measure, dims=\"obs_id\")\n",
692692
"\n",
693693
" alpha = pm.Normal(\"alpha\", 0, sigma=10, dims=\"county\")\n",
694694
" beta = pm.Normal(\"beta\", 0, sigma=10)\n",

examples/case_studies/multilevel_modeling.myst.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Let's now turn our attention to the unpooled model, and see how it fares in comp
242242
coords = {"county": mn_counties}
243243
244244
with pm.Model(coords=coords) as unpooled_model:
245-
floor_idx = pm.MutableData("floor_ind", floor_measure, dims="obs_id")
245+
floor_ind = pm.MutableData("floor_ind", floor_measure, dims="obs_id")
246246
247247
alpha = pm.Normal("alpha", 0, sigma=10, dims="county")
248248
beta = pm.Normal("beta", 0, sigma=10)

0 commit comments

Comments
 (0)