powered by
Function to truncate weight
trunc_fun(x, trim_perc = 0.05)
weight
the percentile at which the inverse probability of treatment weights should be trimmed.
Truncated weights
# NOT RUN { trunc_fun(rnorm(1000,0,1),0.05) # }
Run the code above in your browser using DataLab