Learn R Programming

CHsharp (version 0.4)

sharpen: Penalized Data Sharpening Operator for Local Polynomial Regression

Description

Data perturbation operator which moves responses a minimal amount subject to a given penalty.

Usage

sharpen(x, y, lambda, B)

Arguments

x
numeric vector of predictor observations
y
numeric vector of observed responses
lambda
numeric penalty constant
B
numeric matrix, based on penalty

Value

a numeric vector containing the sharpened responses