hello
I run this code:
proc hpmixed data= mydata;
class fyear two_digit_SICnum FIRMid;
model ROA_NI = post__treatment log_ta fyear two_digit_SICnum FIRMid /solution;
run;
quit;
i want to add to this code clustered stanard error by FIRMid. how can I do it?
On top of my previous reply ...
If you want to stick to PROC MIXED or PROC HPMIXED, then look at the below topics.
They both contain the solution for what you want to achieve.
proc mixed empirical;
class firm;
model y = x1 x2 x3 / solution;
random int / subject=firm;
run;
Koen
Hello,
I believe you have panel data (time series cross-sectional data) , right?
I would use PROC PANEL or PROC CPANEL (CAS-equivalent) to analyze your data. You are in the econometrics space here.
And here's how to do the cluster correction of standard errors :
Koen
On top of my previous reply ...
If you want to stick to PROC MIXED or PROC HPMIXED, then look at the below topics.
They both contain the solution for what you want to achieve.
proc mixed empirical;
class firm;
model y = x1 x2 x3 / solution;
random int / subject=firm;
run;
Koen
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.