Skip to contents

Local polynomial regression at user-supplied evaluation points

Usage

morie_rdd_local_polynomial(x, y, eval_points, h, p = 1, kernel = "triangular")

Arguments

x

Running variable (numeric).

y

Outcome (numeric).

eval_points

Points at which to evaluate the fit.

h

Bandwidth.

p

Polynomial order (default 1, i.e. local linear).

kernel

One of "triangular" (default), "epanechnikov", "uniform", or "gaussian".

Value

A data frame of fitted values and standard errors.