log1mpexp: Numerically compute the value of log(1 - p + p * exp(-x))

Description Usage Arguments Value

View source: R/helper_functions.R

Description

Due to numerical accuracy issues with directly computing this function, a different approach is used that is hopefully more robust. The approach uses uniroot, and therefore may fail. This is an internal function to the package and no real error checking is performed on its inputs.

Usage

1
log1mpexp(log_p, a, b, shape, scale, ...)

Arguments

a

(Numeric) Lower truncation point

b

(Numeric) Upper truncation point

shape

(Numeric) Weibull shape parameter

scale

(Numeric) Weibull scale parameter

...

Arguments that get passed along to 'uniroot'

p

(Numeric) Numeric 0 <= p <= 1

Value

A numeric value


colinorourke/tweibull documentation built on Dec. 19, 2021, 5:22 p.m.