weighted_kernel_est | R Documentation |
Calculates weighted nonparametric regression estimate of the causal average dose response function
weighted_kernel_est(A, y, weights, Aseq)
A |
vector indicating the value of the treatment or exposure variable. Should be a numeric vector. |
y |
vector of responses |
weights |
a vector of sample weights of length equal to the length of |
Aseq |
a vector of new points for which to obtain estimates of E(Y(a)) |
A list with the following elements
fit |
A fitted model object from the |
estimated |
a vector of estimates of a causal ADRF at the values of the treatment specified by |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.