weighted_checkfun: Weighted Check Function

View source: R/BMisc.R

weighted_checkfunR Documentation

Weighted Check Function

Description

Weights the check function

Usage

weighted_checkfun(q, cvec, tau, weights)

Arguments

q

the value to check

cvec

vector of data to compute quantiles for

tau

between 0 and 1, ex. .5 implies get the median

weights

the weights, weighted.checkfun normalizes the weights to sum to 1.

Value

numeric

Examples

x <- rnorm(100)
weighted_checkfun(0, x, tau = 0.5, weights = rep(1, 100))


BMisc documentation built on Aug. 22, 2026, 5:07 p.m.