weighted_len: Weighted length of a confidence band

Description Usage Arguments Value

View source: R/sim_funs.R

Description

Computes weighted length of a confidence band, where the weights are given by the design of the regressor.

Usage

1
weighted_len(eval, cb.l, cb.u, x.spec = c("unif", "beta"))

Arguments

eval

a vector of evaluation points in the support of the regressor

cb.l

a vector of lower confidence band values

cb.u

a vector of upper confidence band values

x.spec

distribution of the regressor, which determines the weights. Supports the uniform distribution ("unif") and the normalized beta(2, 2) distribution ("beta"), both with the support of [-1, 1].

Value

a scalar value of weighted length.


koohyun-kwon/HTEBandSim documentation built on Dec. 21, 2021, 7:43 a.m.