bound {ctmle} | R Documentation |
set outliers to min/max allowable values. It assumes x contains only numerical data
bound(x, bounds)
x |
input data |
bounds |
a vector with length 2, contains the min and max of the bound |
x truncated input x by min/max in bounds
x <- rnorm(1000)
x <- bound(x, c(-1, 1))