Hello guys, I want to use the data (please see the photo) to calculate a factor, the formula is imomf=1/2*(bw+sw)-1/2*(bl+sl), but the thing is i need bw, sw, bl and sl 's corresponding imom statistics to calculate imomf, and i need it sorted by date, so that on each date i get one imomf. Could somebody help me with that? Regards. data temp01; set mylib.rankimom01;
keep permno date imom kind;
run;
proc sort data=temp01;by date;run;
data temp02; set temp01;
imomf=1/2*(bw+sw)-1/2*(bl+sl);
run;
... View more