Estimate smoothed exposure-response function (ERF) for matched and weighted data set using non-parametric models.
estimate_npmetric_erf(
m_Y,
m_w,
counter_weight,
bw_seq,
w_vals,
nthread,
kernel_appr = "locpol"
)The function returns a gpsm_erf object. The object includes the following attributes:
params
m_Y
m_w
bw_seq
w_vals
erf
fcall
A vector of outcome variable in the matched set.
A vector of continuous exposure variable in the matched set.
A vector of counter or weight variable in the matched set.
A vector of bandwidth values.
A vector of values that you want to calculate the values of the ERF at.
The number of available cores.
Internal kernel approach. Available options are locpol
and kernsmooth.
Estimate Functions Using Local Polynomial kernel regression.