Conversation
|
Thank you for your contribution @micahwiesner67 🚀! Your pkgdown-site is ready for download 👉 here 👈! |
|
Hi @micahwiesner67 . Looking at this draft PR I think you've correctly converted the functionality of the Out-of-scope commentsHowever, there are quite a few features that would affect model performance that can't be varied by
These are out-of-scope of this PR, but I was wondering where a good place to log this as a issue would be (either on this pipeline repo or elsewhere)? |
epiforecasts/EpiNow2#1109 (comment) The meaning of the length scale prior hasn't changed, its just used more efficiently under-the-hood. |
|
Feel free to log these out-of-scope thoughts in an issue in this repo. Thanks for looking into this! |
kgostic
left a comment
There was a problem hiding this comment.
I left some high-level comments! Broadly this looks like it will work. Let's chat f2f about whether you're stuck on anything.
|
This looks good in terms of reading the
So probably good idea to avoid merge until we have clarity on those. |
b79d528 to
dab704a
Compare
Draft PR for CI purposes. Between the current version of EpiNow2 (1.6.1) and the latest non-dev version (1.7.1) some of the mechanics of how gp or horizon options are input has changed and thus code in the R/fit_model.R file needs to be adjusted accordingly. The documentation for EpiNow2 can help with this.
Initially, test-write_output.R had the most failing tests. This was due to the process_quantiles function now outputting an additional two columns (accumulate, breakpoint) which are not expected in the test-write_output.R tests. Also these columns contain NAs forcing other tests to also fail out.
Currently, we are passing all unit tests. An initial test run between current version (1.6.1) and latest version (1.7.1) shows slightly different results and version 1.7.1 shows diagnostic flags being triggered.
Update (7/15/25) this was partially improved by adjusting the rt prior sd to 1.0 from 0.2 (these are suggested defaults from EpiNow2 package)
Accomplished:
Notes:
Default alpha_sd has been changed between versions (from 0.05 to 0.01)
Update (7/11/25): I diffed the fit.R file between version 1.6.1 and 1.7.1 and found few differences. I also diffed the opts.R file between the two versions and there are many areas of code which have been refactored, but none jump out to me as changing any default model parameters
Update (7/15/25):

Diagnostics extracted from a fit on the gostic_toy_rt data yields very similar results.
Diagnostics from re-running on 1.7.1 w/ new priors vs. 1.6.1 with old priors still shows 1.7.1 has more divergences (6 state:disease pairs, compared to 3 with 1.6.1s setup). After analyzing these diagnostic files, none of the state:disease pairs with divergences have other diagnostic_flags (none have high_rhat or exceeded max_treedepths)