summ_matches: Computes table of absolute standardized differences

Description Usage Arguments Value Author(s) See Also Examples

Description

Computes absolute standardized differences for both continuous and binary variables. Called by opt_nearfar to summarize results of near-far match.

Usage

1
summ_matches(dta, iv, covs, match)

Arguments

dta

The name of the data frame on which matching was performed

iv

The name of the instrumental variable, e.g., iv="QOB"

covs

A vector of the names of the covariates to make “near”, e.g., covs=c("age", "sex", "race")

match

A two-column matrix of row indices of paired matches

Value

A table of mean variable values for both the “encouraged” and “discouraged” groups across all variables plus absolute standardized differences for each variable

Author(s)

Joseph Rigdon jrigdon@stanford.edu

See Also

opt_nearfar

Examples

1
2
3
k2 = matches(dta=mtcars, covs=c("cyl", "disp"), sinks=0.2, iv="carb",
     cutpoint=2, imp.var=c("cyl"), tol.var=0.03)
summ_matches(dta=mtcars, iv="carb", covs=c("cyl", "disp"), match=k2)

nearfar documentation built on May 2, 2019, 3:29 p.m.