Learn R Programming

MatchItEXT (version 0.0.1)

compute_var_ratio: Compute the ratio of the variances of propensity score in the two groups

Description

This function accepts a MatchIt object (i.e., the result of matchit function) , and calculates variance of propensity score in the two groups before and after matching. The variance ratio is an indicator proposed by Rubin (2001) to assess the similarity of distributions between groups.

Usage

compute_var_ratio(mi_obj = NULL)

Arguments

mi_obj

A matchit object derived from MatchIt pacakge

Value

Return a vector of variances and variance ratios

References

Rubin, D. B. (2001). Using propensity scores to help design observational studies: Application to the tobacco litigation. Health Services and Outcomes Research Methodology, 2(3/4), 169-188. https://doi.org/10.1023/A:1020363010465

See Also

compute_res_var_ratio()

Examples

Run this code
# NOT RUN {
m_out <- MatchIt::matchit(treat ~ re74 + re75 + age + educ + hispan +
black, data = MatchIt::lalonde, method = "nearest")
compute_var_ratio(m_out)
# }

Run the code above in your browser using DataLab