makeOutputFromDailyInfectionsByGroup: Get infection time series

View source: R/getInfectionTimeSeries.R

makeOutputFromDailyInfectionsByGroupR Documentation

Get infection time series

Description

Gets the time series of infections from the given model

Usage

makeOutputFromDailyInfectionsByGroup(model, dailyInfectionsByGroup, byGroup,
  asRate, byWeek)

Arguments

model

The model from which to get the data

dailyInfectionsByGroup

Calculated daily infection prevalence (either as incidence or prevalence)

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

byWeek

If true, returns the output on a weekly, not daily basis; defaults to FALSE

Value

A matrix that contains the infections by simulation day (or week, if byWeek is selected)

Author(s)

Matt Clay clay.matt@gmail.com


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