Description Usage Arguments Details Functions
Extract measurements of growth rates and sample prevalences from observed data. The observations are relatively noisy, so windowed smoothing is used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | fitgr(
obsdata,
winsize = 7,
poscol = "pos",
totcol = "tot",
iscumul = TRUE,
ksmooth = 7
)
smoothprev(
obsdata,
winsize = 7,
poscol = "pos",
totcol = "tot",
iscumul = TRUE
)
|
obsdata |
Data frame of observations. Date in column date
daily normalized observations in column given in the |
winsize |
Window size calculating rates and positive fractions |
poscol |
Name of the column holding the positive observations |
totcol |
Name of the column holding the total observations |
iscumul |
Flag indicating whether poscol and totcol are cumulative |
ksmooth |
Smoothing length in days for growth rates. Zero means no smoothing. |
If smooth
is set, the smoothing is done before the growth rate
bias correction is applied.
fitgr
: Measure growth rate from observations
smoothprev
: Measure sample prevalence with smoothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.