trimatch.apply2 {TriMatch} | R Documentation |
Recursive function to find possible matched triplets using the apply functions.
Description
Internal method. This version does not use the exact matching. Instead, this function should be called separately for each grouping.
Usage
trimatch.apply2(tpsa, caliper, nmatch, match.order, sd1, sd2, sd3)
Arguments
tpsa |
the results from |
caliper |
a vector of length one or three indicating the caliper to use for matching within each step. This is expressed in standardized units such that .25 means that matches must be within .25 of one standard deviation to be kept, otherwise the match is dropped. |
nmatch |
number of closest matches to retain before moving to next edge. This can
be |
match.order |
character vector of length three indicating the order in which the matching algorithm will processes. The default is to use start with the group the middle number of subjects, followed by the smallest, and then the largest. |
sd1 |
standard deviation for propensity scores from model 1. |
sd2 |
standard deviation for propensity scores from model 2. |
sd3 |
standard deviation for propensity scores from model 3. |