This function transforms a typical cem
matching solution
to a k
-to-k
match, with k
variable along strata:
i.e., in each stratum generated by cem
, the match is reduce to have
the same number of treated and control units. (This option will delete
some data that matched well, and thus likely increase the variance, but
it means that subsequent analyses do not require weights.)
The user can choose a method
(between `euclidean
',
`maximum
', `manhattan
', `canberra
', `binary
'
and `minkowski
') for nearest neighbor matching inside each
cem
strata. By default method
is set to `NULL
',
which means random matching inside cem
strata. For the Minkowski
distance the power can be specified via the argument mpower
'.
For more information on method != NULL
, refer to
dist
help page.
After k2k
the weights of each matched observation are set to unity. Please notice that option keep.all=TRUE
must be used in cem
calls
otherwise k2k
will not work.