flum: flum: General modeling function for Attributable Influenza...

Description Usage Arguments Value References Examples

Description

General function wrapper to perform a variety of forecasted models. The output will always be a set of fitted values.

Usage

1
flum(data=NULL, model=NULL, ...)

Arguments

data

A dataframe class object, must contain time variable, epidemic indicator, and measure of influenza morbidity

model

A character of length 1, indicates which model to fit. Options include "ird" (see ?ird), "serflm" (see ?serflm), "fluglm", "flunb", "arima" (see ?flurima).

...

Extra arguments depending on model requested, see examples and vignettes.

Value

an object of class data.frame, with fitted values, threshold if applicable, and computed excess morbidity

References

Thompson WW1, Weintraub E, Dhankhar P, Cheng PY, Brammer L, Meltzer MI, Bresee JS, Shay DK. Estimates of US influenza-associated deaths made using four different methods. Influenza Other Respir Viruses. 2009 Jan;3(1):37-49. /urlhttps://www.ncbi.nlm.nih.gov/pubmed/19453440

Examples

1
2
3
4
5
require(flumodelr)
fludta <- flumodelr::fludta
flu_fit <- flum(fludta, model="fluserf", outc = fludeaths, time = yrweek_dt)  
              
head(flu_fit)

kmcconeghy/flumodelr documentation built on June 7, 2019, 8:47 p.m.