Nothing
getCutoff <-
function(data, depth, alpha, B){
Call = numeric()
for(nb in 1:B){
prbs = depth/sum(depth)
indx = sample(1:length(depth), length(depth), replace = TRUE, prob = prbs)
Yboot = data[indx,] + 0.05 * matrix(rmvnorm(dim(data)[1], mean = rep(0, dim(data)[2]),
sigma = cov(data)), ncol = dim(data)[2])
boot_depths = depth.mode(fdata(Yboot, argvals = NULL, rangeval = NULL,
names = NULL, fdata2d = FALSE))$dep
Call[nb] = quantile(boot_depths, probs = alpha)
}
return(median(Call))
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.