powered by
Weights the check function
weighted_checkfun(q, cvec, tau, weights)
numeric
the value to check
vector of data to compute quantiles for
between 0 and 1, ex. .5 implies get the median
the weights, weighted.checkfun normalizes the weights to sum to 1.
x <- rnorm(100) weighted_checkfun(0, x, tau = 0.5, weights = rep(1, 100))
Run the code above in your browser using DataLab