fit_curve {i2extras}R Documentation

Fit an epi curve

Description

Fit an epi curve

Usage

fit_curve(x, model = c("poisson", "negbin"), alpha = 0.05, ...)

Arguments

x

An incidence2::incidence object.

model

⁠[character]⁠

The regression model to fit (can be "poisson" or "negbin").

alpha

⁠[numeric]⁠

Value of alpha used to calculate confidence intervals; defaults to 0.05 which corresponds to a 95% confidence interval.

...

Additional arguments to pass to stats::glm() for model = "poisson" or MASS::glm.nb() for model = "negbin".

Value

An object of class incidence2_fit.


[Package i2extras version 0.2.1 Index]