BookmarkSubscribeRSS Feed
oshih14
Calcite | Level 5

Hello, I am looking for a procedure which achieves all of the listed: error clustering, year and individual fixed effects with individual fixed effects absorbed (since I have a lot of individuals), and the ability to test linear combinations of variables post-estimation. In Stata, the code would look something like

areg y x1 x2 x3 i.year, absorb(individual) cluster(individual)

lincom x1 x2

 

However, the only procedure I am able to find with absorption is glm, which does not support clustering. Alternatives I've considered are genmod, mixed, panel, and surveyreg, but they do not support absorption. Are there any procedures which suit my needs?

4 REPLIES 4
Ksharp
Super User
You could try PROC HPMIXED which is for high performance and big table.
StatDave
SAS Super FREQ

The GEE method available in PROC GEE (and GENMOD, but GEE is the recommended procedure) via the REPEATED statement is effectively absorption and clustering. It allows estimation of the effects specified in the MODEL statement adjusted for the repeated (clustered) measurements within subjects and avoids the need to estimate parameters for the individual subjects.  Using the example from the Details:Absorption section of the GLM documentation, the following statements produce essentially the same results:

proc glm;
absorb herd cow;
class treatment;
model y = treatment/solution;
run;
proc gee;
class herd cow treatment;
model y=treatment/type3 wald;
repeated subject=cow(herd);
run;

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 1003 views
  • 2 likes
  • 5 in conversation