flubase: flubase: An internal function for taking the average of...

Description Usage Arguments Value

Description

A simple function will compute the mean by group, across a time unit

Usage

1
flubase(data, outc, time, season)

Arguments

data

A dataset which contains a influenza measure, time and grouping variable, season

outc

Influenza measure

time

A a numeric vector with influenza measure

group

An vector ordered by time which indicates grouping by season '

k

The order of lookback, if k=5 then will take mean of previous 5 groups (i.e. influenza seasons)

Value

a vector of length equal to x


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