Defines functions med_sigma

Documented in med_sigma

# function to get the median of all pairwise distances among observations for the bandwidth
med_sigma = function(X, Y) {
  aggre = rbind(X,Y)
  med = median(dist(aggre)^2)

Try the kerTests package in your browser

Any scripts or data that you put into this service are public.

kerTests documentation built on Aug. 23, 2023, 1:09 a.m.