Learn R Programming

redist (version 4.2.0)

redist_quantile_trunc: Helper function to truncate importance weights

Description

Defined as pmin(x, quantile(x, 1 - length(x)^(-0.5)))

Usage

redist_quantile_trunc(x)

Value

numeric vector

Arguments

x

the weights

Examples

Run this code
redist_quantile_trunc(c(1, 2, 3, 4))

Run the code above in your browser using DataLab