09-18-2015 02:32 PM
Is there a SAS equivalent to Stata's areg command? Specifically, I'm looking for a procedure that will replicate the following Stata command:
areg depvar indvar, absorb(id1) cluster(id2)
In this case id1 is nested within id2.
09-25-2015 01:48 PM
I am not real sure, but would some sort of hierarchical model, such as GLIMMIX work for what you want?
proc glimmix data=have;
class id1 id2;
random _residual_/subject=id2(id1) type=vc;