I want to convert monthly to quarterly data. Please see the attached file - in csv. The date format is 19260801.
1. I import the file to SAS and name it fama
2. informat the date
data fama1(keep= date RF);
set fama;
informat date yymmdd8.;
run;
proc sort data=fama1;
by date;
run;
proc expand data=fama1 out=temp2 from=month to=qtr;
id date;
convert RF = interest / method = aggregate observed=average;
run;
3. an error message pops up:
ERROR: The ID variable value date=19260801 is extreme and invalid at observation number 2 in dataset work.fama1
what went wrong? The date informat?