ekde {MEPDF}R Documentation

ekde

Description

Kernel function based on the normal distribution.

Usage

ekde(x,data,H,rule,kernel)

Arguments

x

Evaluation point.

data

Input data.

H

Positive-definite, symmetric matrix as bandwidth.

rule

In absence of a bandwidth matrix a rule-of-thumb can be chosen, either the "silverman" or "scott" rule.

kernel

The kernel function of choice.

Examples

library("pracma")
library("plyr")

data<-cbind(rnorm(1000),rnorm(1000))
pdf<-ekde(x = 0,data = data, rule = "silverman",kernel = normkernel)

[Package MEPDF version 3.0 Index]