Learn R Programming

CIMTx (version 1.0.0)

trunc_fun: Function to truncate weight

Description

Function to truncate weight

Usage

trunc_fun(x, trim_perc = 0.05)

Arguments

x

weight

trim_perc

the percentile at which the inverse probability of treatment weights should be trimmed.

Value

Truncated weights

Examples

Run this code
# NOT RUN {
trunc_fun(rnorm(1000,0,1),0.05)
# }

Run the code above in your browser using DataLab