Learn R Programming

CIMTx (version 0.3.0)

trunc_fun: Truncation

Description

This function implements the truncation feature when estimand is ATT. Please use our main function causal_multi_treat.R.

Usage

trunc_fun(x, trim_alpha = 0.05)

Arguments

x

vector to be trimmed

trim_alpha

alpha values for IPTW weight trimming, inherited from causal_multi_treat.R

Value

vector trimmed

Examples

Run this code
# NOT RUN {
library(CIMTx)
trunc_fun(1:10)
# }

Run the code above in your browser using DataLab