getInfections.SEIRVModel: Get infections

View source: R/getInfections.R

getInfections.SEIRVModelR Documentation

Get infections

Description

Gets the total infections from the given model

Usage

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

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

fractionSymptomatic

The fraction of cases that are symptomatic; must be specified if symptomatic = TRUE

Value

A vector of infections


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