weighted_kernel_est {independenceWeights}R Documentation

Calculation of weighted nonparametric regression estimate of the dose response function

Description

Calculates weighted nonparametric regression estimate of the causal average dose response function

Usage

weighted_kernel_est(A, y, weights, Aseq)

Arguments

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 y

Aseq

a vector of new points for which to obtain estimates of E(Y(a))

Value

A list with the following elements

fit

A fitted model object from the lp function

estimated

a vector of estimates of a causal ADRF at the values of the treatment specified by Aseq


[Package independenceWeights version 0.0.1 Index]