Description Usage Arguments Value
A simple function will compute the mean by group, across a time unit
1 |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.