bound {ctmle}R Documentation

set outliers to min/max allowable values. It assumes x contains only numerical data

Description

set outliers to min/max allowable values. It assumes x contains only numerical data

Usage

bound(x, bounds)

Arguments

x

input data

bounds

a vector with length 2, contains the min and max of the bound

Value

x truncated input x by min/max in bounds

Examples

x <- rnorm(1000)
x <- bound(x, c(-1, 1))

[Package ctmle version 0.1.2 Index]