Learn R Programming

epifitter

Provides a set of tools for aiding in the visualization, description, and comparison of plant disease progress curve (DPC) data. A DPC depict the change in a disease-intensity variable measured sequentially at different times during the epidemics. Their analysis, that may include fitting "classic" population dynamics models (e.g. logistic, monomolecular, Gompertz), allows gaining understanding of the epidemiological processes, but is most used for comparing epidemics.

The mathematics behind model fitting is straightforward and general-purpose spreadsheet or statistical softwares can be used to perform the calculations and select the "best" model. What epifitter does is to provide the analyst with R functions for performing several tasks commonly used for the temporal analysis of epidemics, including graphical output.

Current implementation includes functions for the analyst to:

  • Fit classic population dynamics models using linear and nonlinear approaches
  • Select models based on statistical and visual analysis
  • Calculate the area under the disease progress curve
  • Compare epidemics via visual inference
  • Simulate synthetic epidemics of various shapes and uncertainty

Quick start

Install the stable release from CRAN.

install.packages("epifitter")

The development version of epifitter is available from GitHub. The devtools package, available from CRAN, is required for installation.

if (!require(devtools)) {
  install.packages("devtools")
}

devtools::install_github("AlvesKS/epifitter")

Meta

  • Please report any issues or bugs.
  • All code is licensed MIT
  • To cite epifitter, please use the output from citation("epifitter")
  • Please note that epifitter is released with Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Copy Link

Version

Install

install.packages('epifitter')

Monthly Downloads

389

Version

0.3.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Kaique dos S. Alves

Last Published

June 14th, 2021

Functions in epifitter (0.3.0)

fit_lin

Fits epidemic models using data linearization
fit_nlin

Fits epidemic models using nonlinear aproach
AUDPC

Area under disease progress curve
fit_multi

Estimate model parameters for multiple disease progress curves
fit_nlin2

Fits epidemic models using nonlinear aproach. This function also estimates the maximum disease intensity parameter K
PowderyMildew

Dataset powdery mildew disease progress curves
logi_fun

Function for logistic model
gompi_fun

Function for Gompertz model
AUDPS

Area under disease progress stairs
print.fit_lin

Print fit_lin() or fit_nlin() outputs
mono_fun

Function for Monomolecular model
sim_exponential

Simulate an epidemic using the Exponential model
print.fit_nlin2

Print fit_nlin2() outputs
sim_gompertz

Simulate an epidemic using the Gompertz model
sim_logistic

Simulate an epidemic using the logistic model
sim_monomolecular

Simulate an epidemic using the Monomolecular model
expo_fun

Function for Exponential model
plot_fit

Creates a plot panel for the fitted models