I'm running a regression where NJ is the treated group and PA is the control group. However, when I run the regression PA is the treated variable. PA is actually the untreated group, and should be the baseline. How do I change this?
cardkruger = read.csv('https://raw.githubusercontent.com/bandcar/Examples/main/cardkruger.csv')
reg = lm(fte ~ t*treated, cardkruger)
summary(reg)
output:
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 17.0652 0.4986 34.224 <2e-16 ***
t 0.5075 0.7085 0.716 0.4740
treatedPA 2.8835 1.1348 2.541 0.0112 *
t:treatedPA -2.9140 1.6105 -1.809 0.0708 .