Skip to content
Open
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
278 changes: 106 additions & 172 deletions examples/survival_analysis/weibull_aft.ipynb

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/survival_analysis/weibull_aft.myst.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jupytext:
format_name: myst
format_version: 0.13
kernelspec:
display_name: pymc
display_name: pymc-examples
language: python
name: python3
name: pymc-examples
---

(weibull_aft)=
Expand Down Expand Up @@ -121,7 +121,7 @@ For more information, see [this Stan example model](https://github.com/stan-dev/
```{code-cell} ipython3
with pm.Model() as model_2:
alpha = pm.Normal("alpha", mu=0, sigma=10)
r = pm.Gamma("r", alpha=1, beta=0.001, testval=0.25)
r = pm.Gamma("r", alpha=1, beta=0.001, initval=0.25)
beta = pm.Deterministic("beta", pt.exp(-alpha / r))

y_obs = pm.Weibull("y_obs", alpha=r, beta=beta, observed=y[~censored])
Expand Down
Loading