bound_precision: Bounding to numerical precision

View source: R/utils.R

bound_precisionR Documentation

Bounding to numerical precision

Description

Bounds extreme values to a specified tolerance level, for use with sensitive quantities that must be transformed, e.g., via qlogis.

Usage

bound_precision(vals, tol = 1e-06)

Arguments

vals

A numeric vector of values in the unit interval [0, 1].

tol

A numeric indicating the tolerance limit to which extreme values should be truncated. Realizations of val less than tol are truncated to tol while those greater than (1 - tol) are truncated to (1 - tol).


nhejazi/medoutcon documentation built on July 16, 2025, 5:38 p.m.