Following a guideline, I am using a regression to calculate the treatment effect on cost while controling for other baseline characteristics. The constant of the regression is interpreted as the average cost for control group (in mean age and being a female) and the TreatmentDummy coefficient is the average treatment effect (in mean age and being a female), and the sum of constant and TreatmentDummy coeffecient is the average cost for the treated group (in mean age and being a female).
However, my cost data is extremly sparsed and the estimated cost for treatment could sometimes be negative. I want to constrain 0<=TreatmentDummy coeffecient<= constant, and regress the model with cnsreg, but dont know how to write this constraint
PHP Code:
reg cost TreatmentDummy age_centred gender

Comment