-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
What I meant is to create a new session in https://github.com/pymc-devs/pymc3/blob/master/docs/source/examples.rst, the website will then build and automatically index the notebook correctly. |
|
Ah didnt realized this is WIP... :-p |
No worries! These commits should fix everything about Still waiting to see if we can port the blog post as a notebook. If not, is it possible/permissible to link to the blog post from the docs? It's a valuable resource: I learnt a lot from it! |
@eigenfoo feel free to add my post! |
I do appreciate you asking, but my posts are all CC BY-SA licensed so feel free to adapt, reuse, etc. in the future. |
Notebook looks good. My one comment would be that instead of a |
@AustinRochford I'm a bit confused about the proper usage of Personally speaking, I feel much more comfortable reading I think I'll change the implementations of all of the censored data models to whatever gets agreed on. |
I agree with @AustinRochford, using a potential is clearer in this case as these values are not observed (but integrate over the tail of the distribution), which gives something like: y_cens = pm.Potential(
'y_cens', suvival_func(y_std[cens], η[cens_], s))
) As you can see, using Bernoulli doesnt make it clearer, as you need explaination of why |
Deleting I made a first pass through Weibull AFT notebook, but I'll probably want to take another look at it in the next few days before merging. |
No problem, take your time. |
@eigenfoo Looks great, make sure to keep the output cells in the NB. |
Ready for review/merge! |
LGTM mostly, small reminder: |
Ah right! Thanks for reminding me. These commits should do the trick. |
|
Thanks @eigenfoo and congrats on your first PR! |
Awesome |
👏 |
Hello!
This PR closes #2899 and #2942 and adds two new notebooks to the examples:
censored_data.ipynb
: porting Add examples of censored data models #1870 to a notebook. I also took the liberty of touching up the explanations and visualizations there. Not sure if we now want to delete the original.py
example file, but if we do, I'd be happy to do that.weibull_aft.ipynb
: I haven't gotten around to this yet, but as far as I can tell it's a basic Weibull AFT model ported from here.I'll probably finish up the Weibull AFT notebook sometime in the next few days; I'll ping when the PR is ready for review.
@junpenglao commented here about putting some notebooks under a new session and indexing them on the website. I'm not sure what that means, or how to go about doing it. Could someone give me some pointers? 😃
I think the same comment also suggested adding @AustinRochford's blog post on AFT models as an example notebook, but I'm not sure if we have the author's permission to do that. If we do, I'd be happy to tack that on to this PR (which would bring the number of new notebooks to three).