I am running a cost analysis, comparing the total cost of treatment 1 to treatment 2. My main question of interest is if there is a significant difference in cost between treatment groups after controlling for var1 and var2. I am running a GLM with a log link and gamma distribution, and the variables are
- Cost: continuous
- Treatment: binary
- Var 1: 9 categories
- Var 2: 6 categories
Code:
glm cost i.treatment i.var1 i.var2, f(gam) l(log) cluster(clinician)
Comment