Fit an epi curve

fit_curve(x, model, ...)

# S3 method for default
fit_curve(x, model, ...)

# S3 method for incidence2
fit_curve(x, model = "poisson", alpha = 0.05, ...)

Arguments

x

An incidence2::incidence object.

model

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

...

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

alpha

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

Value

An object of class incidence2_fit.

Author

Tim Taylor