Estimates the smoothed exposure-response function using a generalized additive model with splines.
estimate_semipmetric_erf(formula, family, data, ...)returns an object of class gam
a vector of outcome variable in matched set.
a description of the error distribution (see ?gam).
dataset that formula is build upon Note that there should be a
counter_weight column in this data.).
Additional parameters for further fine tuning the gam model.
This approach uses Generalized Additive Model (gam) using mgcv package.