Learn R Programming

swash (version 1.2.1)

loggrowth-class: Class "loggrowth"

Description

The class "loggrowth" contains the results of the logistic_growth() function. Use summary(sbm) and plot(sbm) for results summary and plotting, respectively.

Arguments

Objects from the Class

Objects can be created by the function logistic_growth.

Slots

LinModel:

Object of class list Results of the OLS helper model

GrowthModel_OLS:

Object of class list Results of the OLS fit (predicted, parameters, first derivative)

GrowthModel_NLS:

Object of class list Results of the NLS fit (predicted, parameters, first derivative)

t:

Object of class numeric Input time points data

y:

Object of class numeric Input infections data

config:

Object of class list Model fit configurations

Methods

plot

signature(x = "loggrowth"): Plots the results of the logistic growth model (observed, predicted, first derivative)

summary

signature(object = "loggrowth"): Prints a summary of loggrowth objects

Author

Thomas Wieland

References

Wieland T (2020) Flatten the Curve! Modeling SARS-CoV-2/COVID-19 Growth in Germany at the County Level. REGION 7(2), 43–83. tools:::Rd_expr_doi("https://doi.org/10.18335/region.v7i2.324")

Examples

Run this code
showClass("loggrowth")

Run the code above in your browser using DataLab