Skip to content
Prev 256811 / 398506 Next

zooreg and window

On Wed, 13 Apr 2011, Katrina Bennett wrote:

            
Here, you use "POSIXct" for your time index, below in the window() call 
you use "Date". The latter is more appropriate here because you appear to 
have daily data (and not intraday data).

Thus, you can do

regts.start <- as.Date(regts.start)

or create it from scratch via

regts.start <- as.Date("1965-05-15")

and analogously for regts.end.

The deltat in the zooreg() call is then simply 1.