estimate_R0: Estimate R0

Description Usage Arguments Details Value

View source: R/estimate_R0.R

Description

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.

Usage

1
estimate_R0(sigma, gamma, I, time_start, time_end)

Arguments

sigma

float

gamma

float

I

array-like

time_start

int time serie of which to calculate R0

time_end

int

Details

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

Value

a list containing: R0, start, end. start and end are the extremes of J (see details). Ignore if any is passed by user.


Andreaierardi/disCOVIDer19 documentation built on Nov. 3, 2020, 2:24 a.m.