Skip to content

Commit

Permalink
fixed all random effects in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
digicosmos86 committed Apr 12, 2024
1 parent 47d885a commit ff487b2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ model = hssm.HSSM(
"Intercept": {"name": "Normal", "mu": 0.0, "sigma": 0.1},
"theta": {"name": "Normal", "mu": 0.0, "sigma": 0.1},
},
"formula": "v ~ theta + 1|participant_id",
"formula": "v ~ theta + (1|participant_id)",
"link": "identity",
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started/hierarchical_modeling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"# The dictionary way:\n",
"param_v = {\n",
" \"name\": \"v\",\n",
" \"formula\": \"v ~ + x + y + x:y + (1|participant_id)\",\n",
" \"formula\": \"v ~ x + y + x:y + (1|participant_id)\",\n",
" \"link\": \"identity\",\n",
" \"prior\": {\n",
" \"Intercept\": {\"name\": \"Normal\", \"mu\": 0.0, \"sigma\": 0.25},\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ model = hssm.HSSM(
"Intercept": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
"theta": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
},
"formula": "v ~ theta + 1|participant_id",
"formula": "v ~ theta + (1|participant_id)",
"link": "identity",
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/plotting.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
" \"Intercept\": {\"name\": \"Normal\", \"mu\": 0.0, \"sigma\": 1.0},\n",
" \"theta\": {\"name\": \"Normal\", \"mu\": 0.0, \"sigma\": 1.0},\n",
" },\n",
" \"formula\": \"v ~ (1|participant_id) + theta\",\n",
" \"formula\": \"v ~ theta + (1|participant_id)\",\n",
" \"link\": \"identity\",\n",
" },\n",
" ],\n",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def test_plot_posterior_predictive(cav_idata, cavanagh_test):
"Intercept": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
"theta": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
},
"formula": "v ~ (1|participant_id) + theta",
"formula": "v ~ theta + (1|participant_id)",
"link": "identity",
},
],
Expand Down Expand Up @@ -300,7 +300,7 @@ def test_plot_quantile_probability(cav_idata, cavanagh_test):
"Intercept": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
"theta": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
},
"formula": "v ~ (1|participant_id) + theta",
"formula": "v ~ theta + (1|participant_id)",
"link": "identity",
},
],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sample_posterior_predictive.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def test_sample_posterior_predictive(cav_idata, cavanagh_test):
"Intercept": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
"theta": {"name": "Normal", "mu": 0.0, "sigma": 1.0},
},
"formula": "v ~ (1|participant_id) + theta",
"formula": "v ~ theta + (1|participant_id)",
"link": "identity",
},
],
Expand Down

0 comments on commit ff487b2

Please sign in to comment.