powered by
Kernel function based on the normal distribution.
ekde(x,data,H,rule,kernel)
Evaluation point.
Input data.
Positive-definite, symmetric matrix as bandwidth.
In absence of a bandwidth matrix a rule-of-thumb can be chosen, either the "silverman" or "scott" rule.
The kernel function of choice.
# NOT RUN { library("pracma") library("plyr") data<-cbind(rnorm(1000),rnorm(1000)) pdf<-ekde(x = 0,data = data, rule = "silverman",kernel = normkernel) # }
Run the code above in your browser using DataLab