Learn R Programming

rqPen (version 2.2.2)

kernel_estimates: Kernel based estimates of Y|X

Description

Provides fitted values of Y.

Usage

kernel_estimates(x,y,h,...)

Arguments

x

matrix of predictors

y

Vector of response

h

Scalar bandwidth tuning parameter

...

Additional arguments to be sent to kernesti.regr from regrpo package.

Value

Estimates a conditional density. For future use of implementing inverse probability weights (IPW) to handle missing data.

Examples

Run this code
# NOT RUN {
x <- matrix(rnorm(800),nrow=100)
y <- rbinom(100,1,.5)
cond_fit <- kernel_estimates(x,y,1)
# }

Run the code above in your browser using DataLab