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 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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