Hi experts,
As in my txt file, I want to regress R1 on R2 in the group of permno. And for each permno, I wanna get the coefficient of its regression. Is it possible to get a set of the coefficients corresponding to each permno? Thanks a lot!!
Yes, I tried the codes below, but my system always crash when I run this step.
proc reg data=reg;
model ret1=ret2;
by permno;
run;
I put the BY before model, but the system still crash again. And it seems it creates only the report, not a collection of the coefficients.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.