Skip to content

Censored data and Weibull AFT model #3095

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 21 commits into from
Jul 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 RELEASE-NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### New features

- Add documentation section on survival analysis and censored data models
- Add `check_test_point` method to `pm.Model`
- Add `Ordered` Transformation and `OrderedLogistic` distribution
- Add `Chain` transformation
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api/bounds.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Caveats

* Bounds cannot be given to variables that are ``observed``. To model
truncated data, use a :func:`~pymc3.model.Potential` in combination with a cumulative
probability function. See `this example <https://github.com/pymc-devs/pymc3/blob/master/pymc3/examples/censored_data.py>`_.
probability function. See `this example notebook <https://github.com/pymc-devs/pymc3/blob/master/docs/source/notebooks/weibull_aft.ipynb>`_.

* The automatic transformation applied to continuous distributions results in
an unnormalized probability distribution. This doesn't effect inference
Expand Down
11 changes: 9 additions & 2 deletions docs/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Applied
notebooks/stochastic_volatility.ipynb
notebooks/probabilistic_matrix_factorization.ipynb
notebooks/rugby_analytics.ipynb
notebooks/survival_analysis.ipynb
notebooks/dawid-skene.ipynb

GLM
Expand All @@ -46,6 +45,15 @@ GLM
notebooks/GLM-negative-binomial-regression.ipynb
notebooks/GLM-hierarchical-binominal-model.ipynb

Survival Analysis
=================

.. toctree::
notebooks/survival_analysis.ipynb
notebooks/bayes_param_survival_pymc3.ipynb
notebooks/weibull_aft.ipynb
notebooks/censored_data.ipynb

Gaussian Processes
==================

Expand Down Expand Up @@ -80,7 +88,6 @@ Variational Inference
notebooks/empirical-approx-overview.ipynb
notebooks/normalizing_flows_overview.ipynb


Stochastic Gradient
===================

Expand Down
993 changes: 993 additions & 0 deletions docs/source/notebooks/bayes_param_survival_pymc3.ipynb

Large diffs are not rendered by default.

407 changes: 407 additions & 0 deletions docs/source/notebooks/censored_data.ipynb

Large diffs are not rendered by default.

631 changes: 631 additions & 0 deletions docs/source/notebooks/weibull_aft.ipynb

Large diffs are not rendered by default.

131 changes: 0 additions & 131 deletions pymc3/examples/censored_data.py

This file was deleted.