# NOT RUN {
m_out <- MatchIt::matchit(treat ~ re74 + re75 + age + educ + hispan + black,
data = MatchIt::lalonde, method = "nearest")
# use parse_formula() to check grouping variable and covariates
parse_formula(m_out)
compute_res_var_ratio(original_data = MatchIt::lalonde, mi_obj =
m_out, type_vec = c(0, 1, 1, 1, 2, 2))
# }
Run the code above in your browser using DataLab