exe_fit: Logistic curve fitting

Description Usage Arguments Value Examples

View source: R/exe_fit.R

Description

Logistic curve fitting

Usage

1
exe_fit(sample_cases, sample_date, days)

Arguments

sample_cases

values for growth fitting.

sample_date

sample dates as serial consecutive dates (should be included in days).

days

full vector of serial dates.

Value

a list of fitting results. Specifically:

out_fit

The output of the fitting performed by SummarizeGrowth.

fittedPoints

A data frame containing dates and corresponding fitted values of cumulative cases, listed by columns.

out_chisq

The output of the chi-squared independence test of residuals.

fittedPoints_der

A data frame containing dates and the corresponding fitted values of new cases, listed by columns.

Examples

1
2
3
4
5
6
## Not run: 
  data <- get_regionTS()
  data <- subset(data, denominazione_regione == "Lombardia")
  exe_fit(data$totale_casi, data$data_seriale, c(1:50))

## End(Not run)

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