get_incidence: Calculate incidence from flusurvey data

View source: R/get_incidence.r

get_incidenceR Documentation

Calculate incidence from flusurvey data

Description

This calculates incidence according to a given column in the supplied data.

Usage

get_incidence(
  data,
  incidence.columns = "ili",
  aggregation = c("week", "day", "month", "year"),
  denominator = c("active.members", "reports"),
  min.N = 1,
  by = NULL
)

Arguments

data

a data table, usually generated by merge_data

incidence.columns

one or more columns which specificy incidence; default: "ili"

aggregation

the timescale of aggregation, by default "week"

denominator

what to use as denominator, active members or all reports in a week

min.N

the minimum denominator, by default 1

by

one or more variables by which to group

Value

a data.table with the incidence

Author(s)

seb


sbfnk/flusurvey documentation built on May 19, 2023, 10:44 p.m.