Skip to content

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 20 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from 14 commits
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 Feb 27, 2022
433b0fc
Fixes to multilevel modeling notebook
fonnesbeck Feb 27, 2022
b1639bc
Fixrs to multilevel modeling in response to feedback
fonnesbeck Mar 4, 2022
343a12a
Merge remote-tracking branch 'upstream/main' into multilevel_v4_update
fonnesbeck Apr 11, 2022
8c6451a
Added missing mutable argument to pooled model; re-rendered notebook
fonnesbeck Apr 11, 2022
4d25788
Add guide on how to wrap a JAX function in a Aesara Op (#302)
ricardoV94 Apr 14, 2022
2137095
update twitter link (#314)
Sync271 Apr 16, 2022
58fecd3
update Gaussian Mixture Model example with `pm.NormalMixture` (#310)
Apr 17, 2022
e4b67c0
add `*.DS_Store` to `.gitignore` (#315)
Apr 17, 2022
2c7777b
Regression discontinuity example (#308)
Apr 21, 2022
5b854be
Add a pre-commit check to prevent urls pointing to pymc docs (#311)
juanitorduz Apr 22, 2022
5abdbfb
Item response jupyter style update (#309)
ltoniazzi Apr 24, 2022
38f2a50
GP Mauna Loa with PyMC3 best practices (#316)
danhphan May 6, 2022
20efccc
Pre-commit fixes
fonnesbeck May 7, 2022
0c322b6
Format fixes; removed multilevel modeling from excluded list
fonnesbeck May 9, 2022
40d1474
Update myst_nbs/case_studies/multilevel_modeling.myst.md
OriolAbril May 9, 2022
979e517
Update myst_nbs/case_studies/multilevel_modeling.myst.md
OriolAbril May 9, 2022
10c9f9f
Merge branch 'main' into multilevel_v4_update
OriolAbril May 9, 2022
ca33a3c
update notebook
OriolAbril May 9, 2022
8e352bb
fix CI
OriolAbril May 9, 2022
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
*.pyc
.ipynb_checkpoints
.vscode/*
*.DS_Store

_build
jupyter_execute
44 changes: 44 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,50 @@ repos:
minimum_pre_commit_version: 2.8.0
name: Check notebooks have watermark (see Jupyter style guide from PyMC docs)
types: [jupyter]
- id: no-internal-links
name: Check no internal links are in the docs
description: >-
'A quick check to prevent urls pointing to pymc docs'
files: ^examples/
exclude: >
(?x)(index.md|
404.md|
conf.py|
examples/case_studies/LKJ.ipynb|
examples/case_studies/LKJ.ipynb|
examples/case_studies/blackbox_external_likelihood.ipynb|
examples/case_studies/blackbox_external_likelihood_numpy.ipynb|
examples/case_studies/item_response_nba.ipynb|
examples/case_studies/multilevel_modeling.ipynb|
examples/diagnostics_and_criticism/sampler-stats.ipynb|
examples/gaussian_processes/GP-MaunaLoa2.ipynb|
examples/generalized_linear_models/GLM-logistic.ipynb|
examples/generalized_linear_models/GLM-out-of-sample-predictions.ipynb|
examples/generalized_linear_models/GLM-poisson-regression.ipynb|
examples/generalized_linear_models/GLM-robust.ipynb|
examples/generalized_linear_models/GLM-rolling-regression.ipynb|
examples/generalized_linear_models/GLM-simpsons-paradox.ipynb|
examples/pymc3_howto/api_quickstart.ipynb|
examples/samplers/MLDA_gravity_surveying.ipynb|
examples/samplers/MLDA_simple_linear_regression.ipynb|
examples/samplers/SMC-ABC_Lotka-Volterra_example.ipynb|
examples/splines/spline.ipynb|
examples/survival_analysis/censored_data.ipynb|
examples/survival_analysis/weibull_aft.ipynb)
entry: >
(?x)(arviz-devs.github.io|
aesara.readthedocs.io|
aeppl.readthedocs.io|
pymc-experimental.readthedocs.io|
docs.pymc.io|
numpy.org/doc|
pymc-examples.readthedocs.io|
docs.python.org|
xarray.pydata.org
python.arviz.org|
docs.xarray.dev)
language: pygrep
types_or: [markdown, rst, jupyter]
- repo: https://github.com/mwouts/jupytext
rev: v1.13.7
hooks:
Expand Down
836 changes: 407 additions & 429 deletions examples/case_studies/item_response_nba.ipynb

Large diffs are not rendered by default.

5,803 changes: 1,005 additions & 4,798 deletions examples/case_studies/multilevel_modeling.ipynb

Large diffs are not rendered by default.

Binary file added examples/case_studies/partial_pooled_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/case_studies/pooled_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
871 changes: 871 additions & 0 deletions examples/case_studies/regression_discontinuity.ipynb

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/case_studies/unpooled_model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,668 changes: 1,668 additions & 0 deletions examples/case_studies/wrapping_jax_function.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},
{
"name": "Twitter",
"url": "https://twitter.com/pymc-devs",
"url": "https://twitter.com/pymc_devs",
"icon": "fab fa-twitter-square",
},
{
Expand Down
1,484 changes: 772 additions & 712 deletions examples/data/monthly_in_situ_co2_mlo.csv

Large diffs are not rendered by default.

390 changes: 214 additions & 176 deletions examples/gaussian_processes/GP-MaunaLoa.ipynb

Large diffs are not rendered by default.

378 changes: 223 additions & 155 deletions examples/mixture_models/gaussian_mixture_model.ipynb

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions examples/references.bib
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ @article{efron1975data
year = {1975},
publisher = {Taylor \& Francis}
}
@book{fox2010bayesian,
title = {Bayesian item response modeling: Theory and applications},
author = {Fox, Jean-Paul},
year = {2010},
publisher = {Springer}
}
@book{gelman2006data,
title = {Data analysis using regression and multilevel/hierarchical models},
author = {Gelman, Andrew and Hill, Jennifer},
Expand Down Expand Up @@ -332,6 +338,14 @@ @article{nuijten2015default
year = {2015},
publisher = {Springer}
}
@book{rasmussen2003gaussian,
title = {Gaussian Processes for Machine Learning},
author = {Rasmussen, Carl Edward and Williams, Christopher K. I.},
year = {2006},
isbn = {026218253X},
publisher = {The MIT Press},
url = {https://gaussianprocess.org/gpml/}
}
@book{roback2021beyond,
title = {Beyond multiple linear regression: Applied generalized linear models and multilevel models in R},
author = {Roback, P., and Legler, J.},
Expand Down
269 changes: 153 additions & 116 deletions myst_nbs/case_studies/item_response_nba.myst.md

Large diffs are not rendered by default.

Loading