Learn R Programming

cenROC (version 2.0.0)

kfunc: Function to evaluate the matrix of data vector minus the grid points divided by the bandwidth value.

Description

Function to evaluate the matrix of data vector minus the grid points divided by the bandwidth value.

Usage

kfunc(ktype = "normal", difmat)

Value

Returns the matrix resulting from evaluating difmat.

Arguments

ktype

A character string giving the type kernel to be used: "normal", "epanechnikov", "biweight", or "triweight". By default, the "normal" kernel is used.

difmat

A numeric matrix of sample data (X) minus evaluation points (x0) divided by bandwidth value (bw).