ekde: ekde

Description Usage Arguments Examples

View source: R/EPDF.R

Description

Kernel function based on the normal distribution.

Usage

1
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

1
2
3
4
5
library("pracma")
library("plyr")

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

MEPDF documentation built on Sept. 26, 2018, 5:04 p.m.