loc_constant {mlrv} | R Documentation |
Nonparametric smoothing
Description
Nonparametric smoothing
Usage
loc_constant(bw, x, y, db_kernel = 0L)
Arguments
bw |
double, bandwidth, between 0 and 1. |
x |
vector, covariates |
y |
matrix, response variables |
db_kernel |
bool, whether to use jackknife kernel, default 0 |
Value
a matrix of smoothed values
Examples
n <- 800
p <- 3
t <- (1:n)/n
V <- matrix(rnorm(n * p), nrow = p)
V3 <- loc_constant(0.2, t, V,1)
[Package mlrv version 0.1.2 Index]