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-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

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