-
Notifications
You must be signed in to change notification settings - Fork 59
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
stat_steplineribbon()
for step curves?
#249
Comments
cool yeah, good idea! I think I would probably make it an option to the existing lineribbon geom (like (also would totally accept a PR that does this) |
A simple |
Dude. This looks sweet. I see what you mean about not wanting to lose an uncertainty interval with Hey, do I execute something other than |
Yeah it's on the dev branch currently (haven't merged to master because of Travis issues but it's the only change on there and the tests pass, so we're not talking bleeding edge really). I think the syntax is install_github("mjskay/tidybayes@dev")? |
Works like a dream! |
Yay! 🙂 |
First use out in the wild: https://twitter.com/SolomonKurz/status/1256236803952164864 |
Would you consider support for step functions as in a Kaplan-Meier (KM) survival curve? Say I fit a KM-type model with
brms::brm()
on continuous-time-to-event data witht
cases. The output fromposterior_samples()
would look something like this.Using
posterior_samples()
as the starting point, the workflow to get those samples in a format ready for plotting a survival curve with interval bands is something like this.It’d be sweet if tidybayes offered something that allowed me to skip the
median_qi()
step and pump those MCMC draws into a geom that combined the sensibilities of mygeom_stepribbon() + geom_step()
combo. Maybe call itstat_steplineribbon()
.The text was updated successfully, but these errors were encountered: