R/horowitz_native2.R
morie_nw_regression.Rd
Local CONSTANT fit, so the boundary bias is O(h) where local linear achieves O(h^2). Mirrors morie.fn.hrznwr.
morie.fn.hrznwr
morie_nw_regression(x, y, grid = NULL, h = NULL)
numeric regressor and response.
evaluation points.
bandwidth.
list: grid, fitted, bandwidth, n.
Horowitz, Ch. 2.
set.seed(1) morie_nw_regression(rnorm(100), rnorm(100))$bandwidth #> [1] 0.3709377