Hi all, I used the code to create rolling window for 12 months (t-12) to calculate R2, residual... for month t . For ex, 01JAN2000 to 31DEC2000 --> JAN2001 01FEB2000 to 31JAN2001 ---> FEB 2001 01MAR2000 to 31FEB2001 ---> MAR 2001 ..... I can run with monthly data, but for DAILYdata I cannot use this code: proc sql; create table Form100 as select distinct a.permno, a.date as end, b.ret, b.date from crsp3 (keep=permno date) as a, crsp3 as b where a.permno=b.permno and 1<=intck("month", b.date, a.date)<&J and 0<=intck("year",b.date,a.date)<=1 group by a.permno, a.date; quit; Could you please me with this? THank you very much. HA
... View more