For 1) in your reg model ,there are RE_RF RM_RF , but in your data posted not include these two variable. For 2) For3) You 'd better post some sample data and output you want to be. data temp;
input date : yymmdd10. volumn;
format date yymmddn8.;
cards;
20051221 5
20051221 3
20051222 8
20051222 9
20051224 5
20051225 4
;
run;
proc sort data=temp;
by date;
run;
data want(keep=_date sum);
set temp;
by date;
pre_date=lag(date);
if date-pre_date gt 1 then do;
do i=pre_date+1 to date-1;
_date=i;sum=0;output;
end;
end;
if first.date then sum=0;
sum+volumn;
if last.date then do;_date=date;output;end;
format _date yymmddn8.;
run;
Ksharp
... View more