nb_model: Negative binomial regression model for weekly counts

View source: R/alert_nbinom.R

nb_modelR Documentation

Negative binomial regression model for weekly counts

Description

Negative binomial model helper function for monitoring weekly count time series with seasonality

Usage

nb_model(df, t, y, baseline_end, include_time)

Arguments

df

A data frame, data frame extension (e.g. a tibble), or a lazy data frame

t

Name of the column of type Date containing the dates

y

Name of the column of type Numeric containing counts

baseline_end

Object of type Date defining the end of the baseline/training period

include_time

Logical indicating whether or not to include time term in regression model

Value

A data frame.


CDCgov/Rnssp documentation built on May 12, 2024, 1:32 a.m.