Skip to content

Commit 81e6ffb

Browse files
Benjamin T. VincentdrbenvincentOriolAbril
authored
update truncated/censored notebook to v4 (#271)
* create truncated regression example * delete truncated regression example from main branch * update censored model to v4 using pm.Censored * comply with style guide, hopefully * addressing pull request comments * markdown edits * perfecting wording around the censored distribution plot * fix citations and cross-references Co-authored-by: Benjamin T. Vincent <[email protected]> Co-authored-by: Oriol (ZBook) <[email protected]>
1 parent d9d7ef2 commit 81e6ffb

File tree

3 files changed

+197
-261
lines changed

3 files changed

+197
-261
lines changed

examples/generalized_linear_models/GLM-truncated-censored-regression.ipynb

+116-211
Large diffs are not rendered by default.

examples/references.bib

+77-48
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,23 @@
1+
@article{ando2007bayesian,
2+
title={Bayesian predictive information criterion for the evaluation of hierarchical Bayesian and empirical Bayes models},
3+
author={Ando, Tomohiro},
4+
journal={Biometrika},
5+
volume={94},
6+
number={2},
7+
pages={443--458},
8+
year={2007},
9+
publisher={Oxford University Press},
10+
doi={10.1093/biomet/asm017}
11+
}
12+
13+
@book{breen1996regression,
14+
title={Regression models: Censored, sample selected, or truncated data},
15+
author={Breen, Richard and others},
16+
volume={111},
17+
year={1996},
18+
publisher={Sage}
19+
}
20+
121
@misc{carpenter2016hierarchical,
222
title={Hierarchical partial pooling for repeated binary trials},
323
author={Carpenter, Bob and Gabry, J and Goodrich, B},
@@ -53,6 +73,13 @@ @book{gelman2013bayesian
5373
year={2013}
5474
}
5575

76+
@book{gelman2020regression,
77+
title={Regression and other stories},
78+
author={Gelman, Andrew and Hill, Jennifer and Vehtari, Aki},
79+
year={2020},
80+
publisher={Cambridge University Press}
81+
}
82+
5683
@article{goldberg2001eigentaste,
5784
author = {Ken Goldberg and Theresa Roeder and Chris Perkins},
5885
title = {Eigentaste: A Constant Time Collaborative Filtering Algorithm},
@@ -62,6 +89,20 @@ @article{goldberg2001eigentaste
6289
pages = {133--151}
6390
}
6491

92+
@article{goodman1999,
93+
doi = {10.7326/0003-4819-130-12-199906150-00008},
94+
url = {https://doi.org/10.7326/0003-4819-130-12-199906150-00008},
95+
year = {1999},
96+
month = jun,
97+
publisher = {American College of Physicians},
98+
volume = {130},
99+
number = {12},
100+
pages = {995},
101+
author = {Steven N. Goodman},
102+
title = {Toward Evidence-Based Medical Statistics. 1: The P Value Fallacy},
103+
journal = {Annals of Internal Medicine}
104+
}
105+
65106
@misc{harper2015movielens,
66107
title={The MovieLens Datasets: History and Context},
67108
author={Harper, F. Maxwell and Konstan, Joseph A.},
@@ -102,8 +143,22 @@ @book{james2021statisticallearning
102143
isbn={978-1-0716-1420-4}
103144
}
104145

146+
@article{johnson1999,
147+
doi = {10.2307/3802789},
148+
url = {https://doi.org/10.2307/3802789},
149+
year = {1999},
150+
month = jul,
151+
publisher = {{JSTOR}},
152+
volume = {63},
153+
number = {3},
154+
pages = {763},
155+
author = {Douglas H. Johnson},
156+
title = {The Insignificance of Statistical Significance Testing},
157+
journal = {The Journal of Wildlife Management}
158+
}
159+
105160
@article{koren2009matrixfactorization,
106-
author={Koren, Yehuda and Bell, Robert and Volinsky, Chris},
161+
author={Koren, Yehuda and Bell, Robert and Volinsky, Chris},
107162
journal={Computer},
108163
title={Matrix Factorization Techniques for Recommender Systems},
109164
year={2009},
@@ -122,6 +177,19 @@ @misc{kingma2014autoencoding
122177
primaryClass={stat.ML}
123178
}
124179

180+
@article{kruschke2013,
181+
doi = {10.1037/a0029146},
182+
url = {https://doi.org/10.1037/a0029146},
183+
year = {2013},
184+
publisher = {American Psychological Association ({APA})},
185+
volume = {142},
186+
number = {2},
187+
pages = {573--603},
188+
author = {John K. Kruschke},
189+
title = {Bayesian estimation supersedes the t test.},
190+
journal = {Journal of Experimental Psychology: General}
191+
}
192+
125193
@misc{kucukelbir2015automatic,
126194
title={Automatic Variational Inference in Stan},
127195
author={Alp Kucukelbir and Rajesh Ranganath and Andrew Gelman and David M. Blei},
@@ -219,14 +287,14 @@ @misc{szegedy2014going
219287

220288

221289
@INPROCEEDINGS{vanderplas2012astroML,
222-
author={{Vanderplas}, J.T. and {Connolly}, A.J.
223-
and {Ivezi{\'c}}, {\v Z}. and {Gray}, A.},
224-
booktitle={Conference on Intelligent Data Understanding (CIDU)},
225-
title={Introduction to astroML: Machine learning for astrophysics},
226-
month={oct.},
227-
pages={47 -54},
228-
doi={10.1109/CIDU.2012.6382200},
229-
year={2012}
290+
author={{Vanderplas}, J.T. and {Connolly}, A.J.
291+
and {Ivezi{\'c}}, {\v Z}. and {Gray}, A.},
292+
booktitle={Conference on Intelligent Data Understanding (CIDU)},
293+
title={Introduction to astroML: Machine learning for astrophysics},
294+
month={oct.},
295+
pages={47 -54},
296+
doi={10.1109/CIDU.2012.6382200},
297+
year={2012}
230298
}
231299

232300
@book{wilkinson2005grammar,
@@ -239,43 +307,4 @@ @book{wilkinson2005grammar
239307
isbn={978-0-387-24544-7}
240308
}
241309

242-
@article{kruschke2013,
243-
doi = {10.1037/a0029146},
244-
url = {https://doi.org/10.1037/a0029146},
245-
year = {2013},
246-
publisher = {American Psychological Association ({APA})},
247-
volume = {142},
248-
number = {2},
249-
pages = {573--603},
250-
author = {John K. Kruschke},
251-
title = {Bayesian estimation supersedes the t test.},
252-
journal = {Journal of Experimental Psychology: General}
253-
}
254310

255-
@article{goodman1999,
256-
doi = {10.7326/0003-4819-130-12-199906150-00008},
257-
url = {https://doi.org/10.7326/0003-4819-130-12-199906150-00008},
258-
year = {1999},
259-
month = jun,
260-
publisher = {American College of Physicians},
261-
volume = {130},
262-
number = {12},
263-
pages = {995},
264-
author = {Steven N. Goodman},
265-
title = {Toward Evidence-Based Medical Statistics. 1: The P Value Fallacy},
266-
journal = {Annals of Internal Medicine}
267-
}
268-
269-
@article{johnson1999,
270-
doi = {10.2307/3802789},
271-
url = {https://doi.org/10.2307/3802789},
272-
year = {1999},
273-
month = jul,
274-
publisher = {{JSTOR}},
275-
volume = {63},
276-
number = {3},
277-
pages = {763},
278-
author = {Douglas H. Johnson},
279-
title = {The Insignificance of Statistical Significance Testing},
280-
journal = {The Journal of Wildlife Management}
281-
}

examples/survival_analysis/censored_data.ipynb

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7+
"(censored_data)=\n",
78
"# Censored Data Models"
89
]
910
},
@@ -369,6 +370,7 @@
369370
"cell_type": "markdown",
370371
"metadata": {},
371372
"source": [
373+
"(censored_data/model1)=\n",
372374
"### Model 1 - Imputed Censored Model of Censored Data\n",
373375
"\n",
374376
"In this model, we impute the censored values from the same distribution as the uncensored data. Sampling from the posterior generates possible uncensored data sets.\n",
@@ -676,7 +678,7 @@
676678
],
677679
"metadata": {
678680
"kernelspec": {
679-
"display_name": "Python 3",
681+
"display_name": "Python 3 (ipykernel)",
680682
"language": "python",
681683
"name": "python3"
682684
},
@@ -690,7 +692,7 @@
690692
"name": "python",
691693
"nbconvert_exporter": "python",
692694
"pygments_lexer": "ipython3",
693-
"version": "3.8.5"
695+
"version": "3.9.7"
694696
}
695697
},
696698
"nbformat": 4,

0 commit comments

Comments
 (0)