powered by
Multivariate kernel density
kde_d(x.obs, x.new = NULL, h, stud = FALSE)
Training (observed) data (n1 by d matrix, d>=2)
Evaluation data (n2 by d matrix, d>=2); default to x.obs
Bandwidth (d vector)
Indicator for whether data are studentized; default to FALSE
Density evaluated at x.new
For multivariate distributions, bandwidth is calculated for studentized data.
Wu, Ximing (2019), "Robust Likelihood Cross Validation for Kernel Density Estimation," Journal of Business and Economic Statistics, 37(4): 761-770.
# NOT RUN { x=matrix(rnorm(200),ncol=2) x.new=matrix(rnorm(100),ncol=2) h=c(1,1) f=kde_d(x.new=x.new,x.obs=x,h=h) # }
Run the code above in your browser using DataLab