trim_pr: Trimming the estimates to be strictly between 0 and 1

View source: R/trim_pr.R

trim_prR Documentation

Trimming the estimates to be strictly between 0 and 1

Description

Trimming the estimates to be strictly between 0 and 1

Usage

trim_pr(ps, eps = 1e-08)

Arguments

ps

n-dimensional vector of estimated probabilities

eps

a small constant that determines the trimming of the estimated probabilities. Specifically, the estimate probability is trimmed to be between eps and 1-eps (default = 1e-8).

Value

ps_tr

n-dimensional trimmed estimates


ciccr documentation built on Oct. 21, 2023, 1:08 a.m.