I'm working on a project where we'd like to run a follow-up linear regression model on treatment-control data where the treatments have been matched to the controls using the cem
package to perform coarsened exact matching:
match <- cem(treatment="cohort", data=df, drop=c("member_id","period","cohort_period"))
est <- att(match, total_cost ~ cohort + period + cohort_period, data = df)
where I'd like to estimate the coefficient and 95% CI on the "cohort_period" interaction term. It seems the att
function in the cem
package only estimates the coefficient for the specified treatment variable (in this case, "cohort") while adjusting for other variables in the regression.
Is there a way to return the coefficients and 95% CIs for the other regression terms?
cem
package, would I have to specifytreatment="cohort_period"
instead oftreatment="cohort"
if I'm interested in measuring the cohort x period interaction effect (for a difference-in-differences study)? – RobertFMatchIt
andZelig
packages may still be unbiased. If I draw out a causal diagram for my project, it looks like: { period --------> total_cost <------------ cohort <---------- confounders } plus an additional arrow: { total_cost <--------- confounders } in the diagram. I think it's reasonable to assume whether an individual in my data falls in period=0 or period=1 is not related to confounder variable values like age, sex, etc. – RobertFperiod
, just make sure you do exact matching onperiod
, includeperiod
in the PS model (if using one), and include thecohort
byperiod
interaction in the outcome model. I think you should be fine with your solution. – Noah