BookmarkSubscribeRSS Feed
shenflow
Obsidian | Level 7

Is there a clustering option available in a two-way fixed effect proc panel procedure?

 

I realize that there is the "cluster" option. However, one can not specify the clusters. As far as I understand, SAS simply clusters around the ID variables. In my case, I have two ID variables (two fixed effects). But I would like to cluster around only one of them. Is this possible?

 

Example:

proc panel data = input;
id firm time;
model y = x1 x2 x3 /twoway hcce=1 cluster;
quit;

How can I specify the cluster option?

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

What is ANOVA?

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.

Discussion stats
  • 0 replies
  • 510 views
  • 0 likes
  • 1 in conversation