-
Notifications
You must be signed in to change notification settings - Fork 6
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
Issue 48: Ebola vignette #52
Conversation
We did not. And I agree it would be a really useful demonstration. Currently packing to get ready to move to Canada tomorrow... will engage more after I move... |
Agree with both of you that this would be a nice thing to at least plan to do here as its within the functionality of the current package but hasn't been explored but is suggested as a good idea in Charniga et al. I say plan as we need to make sure any current design decisions don't close the door on this but if time also just doing it now would be good. |
Note to self that after working on the in depth model vignette (#66) I am now in more of a position to implement a basic version of the gamma delay into this PR. |
Updates based on #70:
|
e4a0c48
to
90215d6
Compare
9a49ff3
to
db6ddcf
Compare
dcf3066
to
ac615bb
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #52 +/- ##
===========================================
+ Coverage 28.49% 46.87% +18.37%
===========================================
Files 10 12 +2
Lines 565 576 +11
===========================================
+ Hits 161 270 +109
+ Misses 404 306 -98 ☔ View full report in Codecov by Sentry. |
80dc4c4
to
eccdafc
Compare
5ab998b
to
adfab97
Compare
3b70bf3
to
e378f81
Compare
025c931
to
4eb98ab
Compare
… now that it's possible
Co-authored-by: Katie Gostic (she/her) <[email protected]>
I think it's all confirmed and suspected cases from a scan of the paper but not 100% sure. |
Co-authored-by: Katie Gostic (she/her) <[email protected]>
I've incorporated most of your feedback into the vignette. The main thing that helped was just switching to HMC from Laplace (solved the modelling issues). I have also created follow-up issues for:
If this is passing and reasonable, I'd suggest merging this, then I can clean things up in a PR resolving #290. If you have more comments about it then we could put them in there. Reason for this strategy is that this thread has got overwhelming and so I'd like to get the 95% that is done banked then be in a clearer place to resolve any remaining things. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM to me. Happy that all additional work has been captured in new issues. This reads very nicely as is and I think surfaces some exciting functionality.
* Template for second vignette * Add ebola data and figure * Add segments and reference for data * Better title and cleaning up of data into ptime and stime format * Working through the processing of data * Merge references * Use @ for reference * More clarity on what's going on in Ebola data preparation section * Start with model fitting section * Statement of intent about what the vignette might contain * Start getting shapefiles for plot / spatial analysis * Figure of SL spatial working * Further writing * Update introduction writing * Start to correct Ebola vignette * Trying to line up shapefile chiefdom names * Use districts over chiefdoms, start trying to fit district-sex level delay models * Move out things we don't need and start fitting stratified models with subsampling and Laplace for now * Trying out tidybayes * It works! * Better laying out the things wanted in this vignette * Move library to top, improve plot, add text * The small districts are worse, but I still think the priors are wrong * Add fitting with gamma * Add column descriptions * Testing prediction tidybayes functions * Replace epidist::epidist by epidist * Improvements to writing, looking at the linear predictors, attempting to do posterior predictions * Add sf dependency * Lint * Add modelr to suggests * Move fraction, add dplyr:: to select, and create PMF and PDF figures * Add SLE shapefiles * This question is now an issue * Remove warnings, make brms silent, filter to only data with >30 points, produce all epred and pred figures, add conclusion * Work through more writing in the vignette * Lint vignette and aim to make reproducible * Correct error that prevents render * Some wording fixes * Remove dplyr:: and put library(dplyr) * Use system.file * Remove modelr:: and tidybayes:: apart from in text * Put () after functions to get link in pkgdown * Add link to pkgdown header * Reproduce summary level of rounding inline * Moved to issue * All figures in own chunk * Move rvars to issue * Fix first x-axis * Remove complaining about KDE * Text update * Use "lognormal" not brms::lognormal() * Add figure captions to all figures * Remove parts about gamma and model comparison * Be specific about the dates * Improve intercept only text Co-authored-by: Katie Gostic (she/her) <[email protected]> * Comment about lubridate Co-authored-by: Katie Gostic (she/her) <[email protected]> * Add comment on ptime and stime Co-authored-by: Katie Gostic (she/her) <[email protected]> * Comment on using all available data * Move column descriptions into function roxygen * Set all x-axis limits to 30, and set pwindow_upr and swindow_upr to 0 now that it's possible * More verbose on sex-stratified model Co-authored-by: Katie Gostic (she/her) <[email protected]> * Note on interpreting the summary * Make introduction shorter * Lint package * Collapse plots into a 3 level patchwork (part 1) * Update documentation * More collapse 3 plots into patchwork * Correct figure chunk name * Range of improvements to Ebola vignette (sorry for squashed commit message) * Add head(obs_prep) Co-authored-by: Katie Gostic (she/her) <[email protected]> * Add patchwork to suggests * Don't need sec: --------- Co-authored-by: Katie Gostic (she/her) <[email protected]> Former-commit-id: bef50ccc525ab60a9056617a77b36321b853a8c2 [formerly 7c6d247838dcf265e6a98e230279163ac3d380bc] Former-commit-id: 2c1fd847cc2c201d2209d7d10f804980d0274c7c
Description
This PR will close #48. The point of this vignette is to demonstrate some of the more advanced capabilities of the
epidist
package.Checklist