redist_quantile_trunc: Helper function to truncate importance weights

View source: R/redist_smc.R

redist_quantile_truncR Documentation

Helper function to truncate importance weights

Description

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

Usage

redist_quantile_trunc(x)

Arguments

x

the weights

Value

numeric vector

Examples

redist_quantile_trunc(c(1, 2, 3, 4))


redist documentation built on June 24, 2024, 9:10 a.m.