parse_formula: Parse formula to obtain grouping variable and covariate...

Description Usage Arguments Value Examples

View source: R/variance_ratio.R

Description

This function parses the formula used in matchit() to obtain the grouping variable and the covariate vector.

Usage

1
parse_formula(mi_obj = NULL)

Arguments

mi_obj

A matchit object derived from MatchIt pacakge

Value

Return a list including the grouping variable and covariate vector

Examples

1
2
3
m_out <- MatchIt::matchit(treat ~ re74 + re75 + age + educ + hispan +
black, data = MatchIt::lalonde, method = "nearest")
parse_formula(m_out)

MatchItEXT documentation built on Oct. 28, 2020, 5:06 p.m.