Cameron wondered whether rolling in Stata 9 handles panel data with
gaps in the time series. Yes, it does. You might want to use
rolling _b e(N), ...
to save the N that enters each window. It deals with the issue that
some windows do not have any data available (if there is a sizable gap
in the middle of a timeseries).