ekde {MEPDF} | R Documentation |
Kernel function based on the normal distribution.
ekde(x,data,H,rule,kernel)
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. |
library("pracma")
library("plyr")
data<-cbind(rnorm(1000),rnorm(1000))
pdf<-ekde(x = 0,data = data, rule = "silverman",kernel = normkernel)