-
-
Notifications
You must be signed in to change notification settings - Fork 269
Updated multilevel modeling to v4 #285
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
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
cec20e0
Updated multilevel modeling to v4, added missing figures locally
fonnesbeck 433b0fc
Fixes to multilevel modeling notebook
fonnesbeck b1639bc
Fixrs to multilevel modeling in response to feedback
fonnesbeck 343a12a
Merge remote-tracking branch 'upstream/main' into multilevel_v4_update
fonnesbeck 8c6451a
Added missing mutable argument to pooled model; re-rendered notebook
fonnesbeck 4d25788
Add guide on how to wrap a JAX function in a Aesara Op (#302)
ricardoV94 2137095
update twitter link (#314)
Sync271 58fecd3
update Gaussian Mixture Model example with `pm.NormalMixture` (#310)
e4b67c0
add `*.DS_Store` to `.gitignore` (#315)
2c7777b
Regression discontinuity example (#308)
5b854be
Add a pre-commit check to prevent urls pointing to pymc docs (#311)
juanitorduz 5abdbfb
Item response jupyter style update (#309)
ltoniazzi 38f2a50
GP Mauna Loa with PyMC3 best practices (#316)
danhphan 20efccc
Pre-commit fixes
fonnesbeck 0c322b6
Format fixes; removed multilevel modeling from excluded list
fonnesbeck 40d1474
Update myst_nbs/case_studies/multilevel_modeling.myst.md
OriolAbril 979e517
Update myst_nbs/case_studies/multilevel_modeling.myst.md
OriolAbril 10c9f9f
Merge branch 'main' into multilevel_v4_update
OriolAbril ca33a3c
update notebook
OriolAbril 8e352bb
fix CI
OriolAbril File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -4,10 +4,11 @@ | |||||
"cell_type": "markdown", | ||||||
"metadata": {}, | ||||||
"source": [ | ||||||
"(notebook_name)=\n", | ||||||
"# A Primer on Bayesian Methods for Multilevel Modeling\n", | ||||||
"\n", | ||||||
":::{post} 27 February, 2022\n", | ||||||
":tags: hierarchical, pymc.Data, pymc.Deterministic, pymc.Exponential, pymc.LKJCholeskyCov, pymc.Model, pymc.MvNormal, pymc.Normal\n", | ||||||
":tags: hierarchical, Data, Deterministic, Exponential, LKJCholeskyCov, Model, MvNormal, Normal\n", | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
":category: intermediate\n", | ||||||
":author: Chris Fonnesbeck, Colin Carroll, Alex Andorra, Oriol Abril, Farhan Reynaldo\n", | ||||||
":::" | ||||||
|
@@ -570,7 +571,7 @@ | |||||
"cell_type": "markdown", | ||||||
"metadata": {}, | ||||||
"source": [ | ||||||
"You may be wondering why we are using the `pm.Data` container above even though the variable `floor_idx` is not an observed variable nor a parameter of the model. As you'll see, this will make our lives much easier when we'll plot and diagnose our model. In short, this will tell [ArviZ](https://arviz-devs.github.io/arviz/index.html) that `floor_idx` is information used by the model to index variables. ArviZ will thus include `floor_idx` as a variable in the `constant_data` group of the resulting [`InferenceData`](https://arviz-devs.github.io/arviz/notebooks/XarrayforArviZ.html) object. Moreover, including `floor_idx` in the `InferenceData` object makes sharing and reproducing analysis much easier, all the data needed to analyze or rerun the model is stored there." | ||||||
"You may be wondering why we are using the `pm.Data` container above even though the variable `floor_idx` is not an observed variable nor a parameter of the model. As you'll see, this will make our lives much easier when we'll plot and diagnose our model. In short, this will tell {doc}`Arviz <arviz:index>` that `floor_idx` is information used by the model to index variables. ArviZ will thus include `floor_idx` as a variable in the `constant_data` group of the resulting {ref}`InferenceData <xarray_for_arviz>` object. Moreover, including `floor_idx` in the `InferenceData` object makes sharing and reproducing analysis much easier, all the data needed to analyze or rerun the model is stored there." | ||||||
] | ||||||
}, | ||||||
{ | ||||||
|
@@ -4222,12 +4223,23 @@ | |||||
"%load_ext watermark\n", | ||||||
"%watermark -n -u -v -iv -w" | ||||||
] | ||||||
}, | ||||||
{ | ||||||
"cell_type": "markdown", | ||||||
"metadata": {}, | ||||||
"source": [ | ||||||
":::{include} ../page_footer.md\n", | ||||||
":::" | ||||||
] | ||||||
} | ||||||
], | ||||||
"metadata": { | ||||||
"celltoolbar": "Raw Cell Format", | ||||||
"interpreter": { | ||||||
"hash": "5429d053af7e221df99a6f00514f0d50433afea7fb367ba3ad570571d9163dca" | ||||||
}, | ||||||
"kernelspec": { | ||||||
"display_name": "Python 3 (ipykernel)", | ||||||
"display_name": "Python 3.9.10 ('pymc-dev-py39')", | ||||||
"language": "python", | ||||||
"name": "python3" | ||||||
}, | ||||||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.