Hello, I'm running the following regression (a Fama MecBeth regression): proc sort data=WORK.QUERY out=FM_quadric_reg1; by gvkey; run; PROC REG DATA=FM_quadric_reg1 outest=FM_quadric_reg011 noprint outseb; MODEL y= x1 x2; by gvkey ; RUN; QUIT; proc means data=FM_quadric_reg011 n mean t probt; where _TYPE_ = 'PARMS'; run; Now I want to winsore the outliers: for both beta 1 , beta 2, and the intercept, I want to turn values of that exceed mean plus 3 std dev to the value of mean plus 3 std dev and to turn the values that below mean minus 3 std dev to the value of mean minus 3 std dev. I want to do it for both beta 1 (the coefficient of x1) , beta 2 (the coefficient of x2) and the intercept. could you please assist in writing the code for that? Thank you, Lior
... View more