Add model definition vignette for estimate_dist()#1390
Add model definition vignette for estimate_dist()#1390seabbs-bot wants to merge 9 commits intomainfrom
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThis PR adds a model-definition vignette for Changesestimate_dist() Model Definition Vignette
Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Disambiguates from the new estimate_dist model-definition vignette and matches the existing <function>_workflow naming convention used elsewhere in the package.
Adds estimate_dist() to the Models navbar menu and the Model definitions article group, moves estimate_dist_workflow into a new Auxiliary models group with forecasting_multiple_data_streams, splits the flat Applied use group into Estimating Rt, Auxiliary models, and Production, and adds matching separators to the Usage navbar dropdown.
…oups delays.Rmd is conceptual background, not a model definition. Moved to Start here in _pkgdown.yml and added a link to it from model_overview.Rmd. Updated the Where to look next section in model_overview.Rmd to mirror the new pkgdown article groups (Estimating Rt, Auxiliary models, Production, Case studies) and to include the previously-missing estimate_dist_workflow and forecasting_multiple_data_streams entries.
Revert the move to Start here. delays.Rmd stays alongside the model definitions and is referenced from model_overview.Rmd as conceptual background under the distribution model entry.
Description
This PR closes #1388.
Adds a model definition vignette for
estimate_dist()matching the structure of the existing model definition vignettes forestimate_infections(),estimate_secondary(), andestimate_truncation().While doing so the docs cluster around
estimate_dist()was tightened up — duplicated material between the new model-def vignette and the existing fitting walkthrough was removed, the fitting walkthrough was renamed to a less collision-prone filename, and the pkgdown article structure was reorganised so the new model-def slots in correctly and the worked-example vignettes are no longer mis-categorised.What changed
New model definition vignette —
vignettes/estimate_dist.Rmd. Reference-style prose plus maths (no code chunks, no.Rmd.origneeded). Covers the double interval censoring formulation, primary/secondary event window likelihood, right and left truncation, supported distributional families and parameterisations, default priors, the relationship to the vendoredprimarycensoredStan functions, and the model's limitations.Fitting walkthrough renamed —
vignettes/estimate-dist.Rmd→vignettes/estimate_dist_workflow.Rmd(and.orig, plus four figure PNGs and the matching CI workflow file). The hyphen vs underscore split between the two vignettes was too easy to confuse; the new name follows the existing<function>_workflow.Rmdconvention used byestimate_infections_workflow.Rmd. The workflow vignette's introduction was also trimmed to remove duplication with the new model-def vignette and the conceptualdelays.Rmd, with cross-links added in both directions.pkgdown restructure —
_pkgdown.yml:estimate_dist()to the navbar Models dropdown (was missing).estimate_dist(model def) added under "Model definitions";estimate_dist_workflowmoved out of "Model definitions" (it had been mis-categorised) into a new "Auxiliary models" group alongsideforecasting_multiple_data_streams. The previously flat "Applied use" group is split into "Estimating Rt" (workflow, options, prior choice), "Auxiliary models", and "Production" (epinow).delays.Rmdstays in "Model definitions" as conceptual companion to the model defs.model_overview.Rmdandmodel_features.Rmd— updated so:model_overview.Rmd"Where to look next" mirrors the new pkgdown article structure (Estimating Rt / Auxiliary models / Production / Case studies) and includes the previously-missingestimate_dist_workflowandforecasting_multiple_data_streamsentries.model_features.Rmd"See also" links forestimate_distfeatures point to the model-def vignette (matching the convention used for the other estimation-model tables); the trailing "See also" also points at the worked example.obs_time_threshold.Cross-references updated —
R/estimate_dist.R,R/estimate_delay.R,man/estimate_dist.Rd,man/estimate_delay.Rd, and the.github/workflows/render-estimate_dist_workflow.yamlCI workflow.NEWS.md — Documentation entry added for the new vignette.
Out of scope (follow-up work)
While auditing
model_features.Rmdfor completeness I noticed a few features unrelated toestimate_distthat aren't currently listed:obs_optsargumentsdispersion,week_length,likelihood,return_likelihood;rt_optsargumentsprior,use_rt,future,pop_period,pop_floor. Worth a separate issue rather than scope creep here.Initial submission checklist
devtools::test()anddevtools::check()).devtools::document()). New vignette renders cleanly; Rd files updated for the renamed cross-reference.lintr::lint_package()).After the initial Pull Request
This was opened by a bot. Please ping @seabbs for any questions.