strata_match_nstrat function

Match without Stratification

Match without Stratification

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.

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

Returns

a named factor with matching assignments

See Also

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

  • Maintainer: Rachael C. Aikens
  • License: GPL-3
  • Last published: 2022-03-31