checkfun: Check Function

View source: R/BMisc.R

checkfunR Documentation

Check Function

Description

The check function used for optimizing to get quantiles

Usage

checkfun(a, tau)

Arguments

a

vector to compute quantiles for

tau

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

Value

numeric value

Examples

x <- rnorm(100)
x[which.min(checkfun(x, 0.5))] ## should be around 0


bcallaway11/BMisc documentation built on Feb. 4, 2025, 10:43 p.m.