BookmarkSubscribeRSS Feed
tedkon
Calcite | Level 5

Hello, 

 

I want to include clustered standard errors on my model. I currently have an unbalanced data the most appropriate option that I can use is the PROC TSCSREG. How can I include clustered standards errors on my TSCSREG option?

 

This is the code I used, but I get error messages. It looks like the HCCME option doesn't work in Proc TSCSREG 

 

data data2;
set data;
id2= id;
run;

 

proc sort data = data;
by id t;
run;

 

proc tscsreg data=data;
id id t;
class id2;
model Y= X1 X2 X3 id2/ FIXONE HCCME=2 cluster; 

 

 

Thank you. 

 

Regards, 

Felipe 

2 REPLIES 2
tedkon
Calcite | Level 5

Also when I use Proc Panel data are calculated without Fixed effects 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1299 views
  • 0 likes
  • 2 in conversation