getInfections.SEIRTVModel: Get infections

View source: R/getInfections.R

getInfections.SEIRTVModelR Documentation

Get infections

Description

Gets the total infections from the given model

Usage

## S3 method for class 'SEIRTVModel'
getInfections(model, byGroup = TRUE, asRate = FALSE,
  symptomatic = FALSE)

Arguments

model

The model from which to get the data

byGroup

Whether or not to return data by population group; defaults to TRUE

asRate

Whether to return results as a rate (fraction of population) or else a number; defaults to FALSE

symptomatic

Whether or not to only report symptomatic infections; defaults to FALSE

Value

A vector of infections


HHS/ASPR-flumodels documentation built on Dec. 6, 2022, 12:20 p.m.