This function parses the formula used in matchit() to obtain the grouping variable and the covariate vector.
parse_formula(mi_obj = NULL)
A matchit object derived from MatchIt pacakge
Return a list including the grouping variable and covariate vector
# NOT RUN { m_out <- MatchIt::matchit(treat ~ re74 + re75 + age + educ + hispan + black, data = MatchIt::lalonde, method = "nearest") parse_formula(m_out) # }
Run the code above in your browser using DataLab