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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 373 views
  • 0 likes
  • 1 in conversation