Learn R Programming

mlrv (version 0.1.2)

loc_constant: Nonparametric smoothing

Description

Nonparametric smoothing

Usage

loc_constant(bw, x, y, db_kernel = 0L)

Value

a matrix of smoothed values

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

Examples

Run this code
n <- 800
p <- 3
t <- (1:n)/n
V <-  matrix(rnorm(n * p), nrow = p)
V3 <- loc_constant(0.2, t, V,1)

Run the code above in your browser using DataLab