Matching function using L1 distance on single exposure level w
matching_fn(
w,
dataset,
exposure_col_name,
e_gps_pred,
e_gps_std_pred,
w_resid,
gps_mx,
w_mx,
dist_measure = "l1",
gps_density = "normal",
delta_n = 1,
scale = 0.5,
nthread = 1
)dp: The function returns a data.table saved the matched points on
by single exposure
level w by the proposed GPS matching approaches.
the targeted single exposure levels.
a completed observational data frame or matrix containing (Y, w, gps, counter, row_index, c).
a vector of predicted gps values obtained by Machine learning methods.
a vector of predicted std of gps obtained by Machine learning methods.
the standardized residuals for w.
a vector with length 2, includes min(gps), max(gps)
a vector with length 2, includes min(w), max(w).
Model type which is used for estimating GPS value, including
normal (default) and kernel.
a specified caliper parameter on the exposure (Default is 1).
a specified scale parameter to control the relative weight that is attributed to the distance measures of the exposure versus the GPS estimates (Default is 0.5).
Number of available cores.