fit_lin: Fits epidemic models using data linearization

Description Usage Arguments Author(s) Examples

View source: R/fit_lin.R

Description

Fits epidemic models (Exponential, Monomolecular, Logistic and Gompertz) to data using data linearization

Usage

1

Arguments

time

Numeric vector which refers to the time steps in the epidemics

y

Numeric vector which refers to the disease intensity

Author(s)

Kaique dos S. Alves

Examples

1
2
3
4
5
6
7
8
9
set.seed(1)
epi1 <- sim_logistic(N = 30,
                     y0 = 0.01,
                     dt = 5,
                     r = 0.3,
                     alpha = 0.2,
                     n = 4)
data = data.frame(time =  epi1[,2], y = epi1[,4])
fit_lin( time = data$time, y =  data$y)

epifitter documentation built on Nov. 26, 2020, 1:07 a.m.