Robin,
You can use Lag (upper case "L") from package Hmisc.
Nestor Arguea
On Aug 18, 2008, at 8:40 AM, Williams, Robin wrote:
Dear all,
I am having difficulties using the seemingly-simple function lag.
I have a dataframe with several weather variables (maxitemp,
windspeed, rainfall etc), and
You want to apply lag to time series objects and its likely that
you don't have that.
The dyn (and also dynlm) packages have facilities for peforming lagged
regressions on various time series objects.
If you don't want to use time series objects you can do the lag yourself so
for vector x this wi
Dear all,
I am having difficulties using the seemingly-simple function lag.
I have a dataframe with several weather variables (maxitemp,
windspeed, rainfall etc), and the response variable (admissions). The
dataset is fairly large (1530 observations). I simply want to model the
response again
3 matches
Mail list logo