Skip to content

Commit 4e4866e

Browse files
authored
Merge branch 'main' into copilot/add-goodness-of-fit-functionality
2 parents 084acfc + f233ab4 commit 4e4866e

23 files changed

Lines changed: 895 additions & 113 deletions

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ allpopsamples_hlye.csv$
3939
^\.lintr\.R$
4040
^CLAUDE\.md$
4141
^\.claude$
42+
^_extensions$
4243
^macros$
4344
^\.gitmodules$

.github/workflows/docs.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ on:
2929
- reopened
3030
- ready_for_review
3131
- closed
32-
branches:
33-
- main
3432
paths:
3533
- "inst/templates/**"
3634
- "pkgdown/**"
@@ -146,9 +144,9 @@ jobs:
146144
run: |
147145
# Set devel = FALSE for version tags, TRUE for everything else
148146
if [[ "${{ github.ref }}" == refs/tags/v* ]]; then
149-
Rscript -e 'pkgdown::build_site(devel = FALSE)'
147+
Rscript -e 'pkgdown::build_site(devel = FALSE, quiet = FALSE)'
150148
else
151-
Rscript -e 'pkgdown::build_site(devel = TRUE)'
149+
Rscript -e 'pkgdown::build_site(devel = TRUE, quiet = FALSE)'
152150
fi
153151
shell: bash
154152
working-directory: ${{ github.event.repository.name }}

DESCRIPTION

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: serocalculator
33
Title: Estimating Infection Rates from Serological Data
4-
Version: 1.4.0.9016
4+
Version: 1.4.1.9000
55
Authors@R: c(
66
person("Kristina", "Lai", , "kwlai@ucdavis.edu", role = c("aut", "cre")),
77
person("Chris", "Orwa", role = "aut"),
@@ -51,6 +51,7 @@ Suggests:
5151
fs,
5252
ggbeeswarm,
5353
knitr,
54+
maps,
5455
mixtools,
5556
pak,
5657
quarto,
@@ -65,19 +66,21 @@ Suggests:
6566
forcats,
6667
snapr (>= 0.0.0.9000),
6768
rex,
68-
readr
69+
readr,
70+
serodynamics
6971
LinkingTo:
7072
Rcpp
7173
Config/testthat/edition: 3
7274
Config/Needs/roxygen2: roxygen2, moodymudskipper/devtag
7375
Config/Needs/lint: r-lib/lintr
74-
Config/Needs/website: quarto, lewinfox/foodwebr
76+
Config/Needs/website: quarto, lewinfox/foodwebr, serodynamics, maps
7577
Config/Needs/check: readr
7678
Encoding: UTF-8
7779
Language: en-US
7880
LazyData: true
7981
NeedsCompilation: no
8082
Roxygen: list(markdown = TRUE, roclets = c("collate", "rd", "namespace"))
81-
Remotes:
82-
d-morrison/snapr
83+
Remotes:
84+
d-morrison/snapr,
85+
UCD-SERG/serodynamics
8386
Config/roxygen2/version: 8.0.0

NEWS.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# serocalculator (development version)
22

3+
## Documentation
4+
5+
* Added introductory lecture slides to the `methodology` vignette
6+
("Estimating Incidence Rates from Cross-Sectional Serosurveys").
7+
38
## Internal
49

510
* The `methodology` vignette's LaTeX macros now come from the shared
@@ -23,7 +28,9 @@
2328
shifted the random-number stream out of sync and made simulated values, and
2429
their snapshots, differ between macOS, Windows, and Linux). Simulated
2530
values change slightly as a result of this fix. (#447)
26-
* Removed lingering terminology discrepancies
31+
* Corrected default axis labels in `strat_ests_barplot()` (`xlab`) and
32+
`strat_ests_scatterplot()` (`ylab`) to say "seroincidence" rather than
33+
"seroconversion"/"incidence".
2734
* `load_noise_params()` and `load_sr_params()` now fail gracefully with informative messages when internet resources are unavailable, complying with CRAN policy (#505)
2835
* Added Version Crosswalk article to pkgdown website to help users migrate code from v1.3.0 to v1.4.0
2936
- Provides clear tables comparing old and new function names

R/simresp.tinf.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ simresp.tinf <- function(# nolint: object_name_linter
141141

142142
t_next <- -log(runif(1, 0, 1)) / lambda
143143
# Quantize to whole days for cross-platform reproducibility (see the
144-
# comment on the first-infection draw above). `t_end` and `t0` are whole
145-
# days, so the boundary clamp below stays integer-valued too.
144+
# comment on the first-infection draw above). `t0` is always a whole number
145+
# of days (accumulated quantized steps); `t_end` may be fractional
146+
# (e.g. 10 * 365.25 = 3652.5), so the boundary clamp t_end - t0 can also
147+
# be fractional, but that doesn't affect the integer-length time grid.
146148
t_next <- quantize_t_next(t_next)
147149
if (t0 <= t_end && t0 + t_next > t_end) {
148150
t_next <- t_end - t0
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: slidebreak
2+
author: d-morrison
3+
version: 1.0.0
4+
quarto-required: ">=1.2.0"
5+
contributes:
6+
shortcodes:
7+
- slidebreak.lua
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
-- slidebreak.lua
2+
-- A Quarto shortcode that inserts a slide break in all slide deck formats
3+
-- (revealjs, pptx, beamer) but does nothing in docx and html formats
4+
5+
function slidebreak()
6+
-- Get the current output format
7+
-- See: https://quarto.org/docs/extensions/lua-api.html#format-detection
8+
local format = quarto.doc.is_format
9+
10+
-- Insert slide break for all slide/presentation formats (revealjs, pptx, beamer)
11+
if format("revealjs") or format("pptx") or format("beamer") then
12+
-- Use HorizontalRule which creates a slide separator in presentation formats
13+
return pandoc.HorizontalRule()
14+
end
15+
16+
-- Return empty for html and docx formats (and any other non-presentation format)
17+
return pandoc.Null()
18+
end
19+
20+
-- Return the shortcode handler
21+
return {
22+
['slidebreak'] = slidebreak
23+
}

inst/WORDLIST

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,44 @@ HlyE
1313
IgA
1414
IgG
1515
IgM
16+
LMICs
17+
LPS
1618
LV
1719
Lik
1820
LogLik
1921
Lotka
2022
NIAID
2123
NLL
2224
Nadu
25+
Neuzil
2326
OSF
2427
Orientia
2528
PPC
2629
PRs
30+
Paratyphi
31+
Photomicrograph
2732
RStudio
2833
Rai
2934
Readme
3035
Rmd
3136
Rtools
3237
SERG
3338
SeroEpidemiology
39+
Seroepidemiology
3440
Seroincidence
3541
Serological
42+
Shigella
43+
TCVs
3644
TW
45+
Trombicula
46+
Typhi
3747
UC
3848
UCD
3949
Unif
4050
Vellore
4151
Volterra
4252
Wilk
53+
Wikimedia
4354
al
4455
ast
4556
behaviour
@@ -58,17 +69,23 @@ displaystyle
5869
dplyr
5970
dropdown
6071
dt
72+
enterica
6173
eps
74+
eschar
6275
estimands
6376
et
6477
expf
78+
flagellar
6579
forall
6680
frac
81+
ge
6782
geoms
6883
ggproto
6984
gh
7085
hemolysin
86+
immunocompromised
7187
infty
88+
inoculum
7289
insightsengineering
7390
invf
7491
isos
@@ -80,7 +97,9 @@ leq
8097
linter
8198
llik
8299
logf
100+
macular
83101
magrittr
102+
malaise
84103
mathbb
85104
mathcal
86105
mcmc
@@ -89,15 +108,18 @@ mitre
89108
modelled
90109
multicohort
91110
multiversion
111+
myalgia
92112
nabla
93113
nd
94114
nr
95115
olds
116+
operatorname
96117
overcount
97118
overcounts
98119
overline
99120
param
100121
params
122+
pathognomonic
101123
pipetting
102124
pkgdown
103125
pre
@@ -106,6 +128,11 @@ qmd
106128
qquad
107129
recombinant
108130
renamings
131+
renewcommand
132+
reproducibly
133+
rightarrow
134+
rlang
135+
roadmap
109136
se
110137
sectionally
111138
sera
@@ -122,16 +149,23 @@ seroresponse
122149
seroresponses
123150
serosurvey
124151
serosurveys
152+
serotype
153+
shigella
154+
slidebreak
125155
smp
156+
stylostome
126157
subfigures
127158
submodule
159+
tenesmus
128160
th
129161
tibble
130162
titers
163+
toxoid
131164
tsutsugamushi
132165
undercount
133166
unstratified
134167
varepsilon
135168
vec
136169
vee
170+
widehat
137171
yaml

man/figures/Fievre_typhoide.png

29.2 KB
Loading
104 KB
Loading

0 commit comments

Comments
 (0)