I am trying to reproduce a GLM in Stata that I originally created in SAS. Although my estimates are exactly the same, the standard errors are not, and I'm not quite sure why. I tested all of the vce options in Stata, but the errors still do not match. Note that cost is continuous while treatment, var1, and var2 are all categorical. Here is both codes:
SAS
Stata
Appreciate the help.
SAS
Code:
proc genmod data=data; class clinician treatment var1 var2 / param=ref; model cost = treatment var1 var2/ link=LOG dist=gamma; repeated SUBJECT=clinician/ PRINTMLE TYPE=ind; run;
Code:
glm cost i.treatment i.var1 i.var2, f(gam) l(log) cluster(clinician)
Comment