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 

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 1785 views
  • 0 likes
  • 2 in conversation