Calculates weighted nonparametric regression estimate of the causal average dose response function
weighted_kernel_est(A, y, weights, Aseq)vector indicating the value of the treatment or exposure variable. Should be a numeric vector.
vector of responses
a vector of sample weights of length equal to the length of y
a vector of new points for which to obtain estimates of E(Y(a))
A list with the following elements
A fitted model object from the lp function
a vector of estimates of a causal ADRF at the values of the treatment specified by Aseq