| ps_trunc_meta | R Documentation |
ps_trunc objectReturns the metadata list attached to a ps_trunc
object. The list includes fields such as method, lower_bound,
upper_bound, and truncated_idx.
ps_trunc_meta(x)
x |
A |
A named list with truncation metadata, including:
method – the truncation method used ("ps", "pctl", or "cr")
lower_bound, upper_bound – the applied bounds
truncated_idx – integer positions of values that were winsorized
ps_trunc(), is_ps_truncated(), is_unit_truncated()
ps <- c(0.02, 0.3, 0.5, 0.7, 0.98)
ps_t <- ps_trunc(ps, method = "ps", lower = 0.05, upper = 0.95)
ps_trunc_meta(ps_t)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.