Description Usage Arguments Value Examples
If tstart is provided than you can supply a list of ape::phylo trees instead of treedater trees
1 2 3 4 5 6 7 8 9 10 | skygrowth0(
tds,
tstart = decimal_date(as.Date("2020-03-01")),
tau0 = 1/365/36.5^2,
res = NULL,
numpb = 10,
ncpu = 6,
gamma1 = (-log(0.5)) * 365/6.5,
...
)
|
tds |
A list or multiPhylo, containing ape::phylo or treedater trees |
tstart |
A numeric time to consider as the beginning of the epidemic in region; for best results, select a time when exponential growth in region is well underway. Can be NULL in which case the sarscov2::timports function is used to guess an appropriate date |
tau0 |
Precision parameter for skygrowth. Default value corresponds to 1 per cent change in growth per week |
numpb |
Number of parametric bootstrap to use if using timports |
ncpu |
Number CPUs to use |
gamma1 |
Death/recovery rates used for translating growth rates into R(t) |
... |
Additional arguments passed to skygrowth (eg mhsteps) |
see |
skygrowth, if omitted will guess a good value |
A list with dataframes for Ne, growth, and R(t)
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.