R/flubase.R
flubase.Rd
A simple function will compute the mean by group, across a time unit
flubase(data, outc, time, season)
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) |
a vector of length equal to x