Description Usage Arguments Value References See Also Examples
View source: R/variance_ratio.R
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.
1 | compute_var_ratio(mi_obj = NULL)
|
mi_obj |
A matchit object derived from MatchIt pacakge |
Return a vector of variances and variance ratios
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
compute_res_var_ratio()
1 2 3 | m_out <- MatchIt::matchit(treat ~ re74 + re75 + age + educ + hispan +
black, data = MatchIt::lalonde, method = "nearest")
compute_var_ratio(m_out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.