Description Usage Arguments Details Value
Estimate R0 of a time series I using an exponential approximation of I (I_approx) in early stages of diffusion. The method used is a least square fitting of I_approx over I.
1 | estimate_R0(sigma, gamma, I, time_start, time_end)
|
sigma |
float |
gamma |
float |
I |
array-like |
time_start |
int time serie of which to calculate R0 |
time_end |
int |
R0 will be estimated using I[J], where J is: (time_start:time_end) if user provides both (1:time_end) if user provides time_end but not time_start (time_start:length(I)) if user provides time_start but not time_end (start:end) if user provides neither. start and end are extrapolated with exp_period and aim to identify the extremes of the stage of exponential growth in I
a list containing: R0, start, end. start and end are the extremes of J (see details). Ignore if any is passed by user.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.