strata_match_nstrat: Match without Stratification

View source: R/match_functions.R

strata_match_nstratR Documentation

Match without Stratification

Description

Not meant to be called externally. Match a data set without stratifying. Used to compare performance with and without stratification. Note that this function requires that the R package optmatch is installed.

Usage

strata_match_nstrat(object, model = NULL, k = 1)

Arguments

object

a strata object

model

(optional) formula for matching. If left blank, all columns of the analysis set in object will be used as covariates in the propensity model or mahalanobis match (except outcome, treatment and stratum)

k

the number of control individuals to be matched to each treated individual. If "k = full" is used, fullmatching is done instead of pairmatching

Value

a named factor with matching assignments

See Also

https://cran.r-project.org/package=optmatch


stratamatch documentation built on March 31, 2022, 9:07 a.m.