Displaying 1 result from an estimated 1 matches for "aggpilot".
2010 Aug 20
3
rollmean help (or similar function)
...form a rolling mean per the following instructions. I
have completed the SQL and SAS analysis, so now it's R's turn.
Calculate mean values of x (x=count) for each date in the dataset where
mean = the average count of days [t-9] through day [t-3] for each
date/illness combination.
Dataset aggpilot
date illness x
1 2006/01/01 DERM 319
2 2006/01/02 DERM 388
3 2006/01/03 DERM 336
4 2006/01/04 DERM 255
5 2006/01/05 DERM 177
6 2006/01/06 DERM 377
7 2006/01/07 DERM 113
8 2006/01/08 DERM 253
9 2006/01/09 DERM 316
10 2006/01/10 DE...