The overview function provides a quick assessment of overall matching quality by reporting the N, mean, and s.d. of focal, matched, pool, and unmatched sets for all covariates as well as the propensity scores ('ps'). The mean and s.d. difference in focal - matched is also reported.
overview(x, digits = 2, ...)
# S4 method for class 'Matched,numeric_OR_missing'
overview(x, digits)
Matched object
Integer indicating the number
of significant digits to be used. Negative
values are allowed (see ?signif
).
Additional arguments.
A printed overview of matching quality.
(Internally) a MatchedOverview
object.
Factor, character, or logical covariates are reported by N per set, rather than with mean and s.d.
set.seed(123)
mdf <- makeExampleMatchedDataSet(matched = TRUE)
overview(mdf)
#> MatchedDataFrame object:
#> set N feature2.mean feature2.sd feature3.a feature3.b feature3.c
#> <char> <num> <num> <num> <num> <num> <num>
#> focal 500 4.1 1.9 66 157 206
#> matched 500 4.5 2.8 43 137 254
#> pool 10000 6.0 3.4 4248 3121 1117
#> unmatched 9500 6.1 3.4 4205 2984 863
#> feature3.d feature3.e ps.mean ps.sd
#> <num> <num> <num> <num>
#> 49 22 0.100 0.076
#> 38 28 0.110 0.077
#> 992 522 0.045 0.051
#> 954 494 0.041 0.047
#> --------
#> focal - matched:
#> feature2.mean feature2.sd feature3.a feature3.b feature3.c feature3.d
#> <num> <num> <num> <num> <num> <num>
#> -0.45 -0.93 23 20 -48 11
#> feature3.e ps.mean ps.sd
#> <num> <num> <num>
#> -6 -0.007 -0.00092