truncate_prob: truncate_prob

Description Usage Arguments Value

View source: R/utils.R

Description

truncate_prob truncates a vector of observations in [0, 1] so that each observation is in [tol, 1-tol].

Usage

1
truncate_prob(x, tol = 0.05)

Arguments

x

a vector.

tol

scalar used to make each observation in x be in [tol, 1-tol].

Value

a new vector of length(x) truncated.


matteobonvini/sensitivitypuc documentation built on Dec. 9, 2020, 2:24 a.m.