qtweibull: Quantile Function for Truncated Weibull

Description Usage Arguments Value Examples

View source: R/qtweibull.R

Description

This is an attempt to provide a more numerically stable version of the truncated Weibull distribution, especially for more extreme truncation points. Underneith the hood it relies on uniroot, which may issue errors. For this reason qtweibull should be considered the least stable component of this package. It's also about 50 times slower than stats::qweibull in cases where they both apply.

Usage

1
qtweibull(p, shape, scale, a = 0, b = Inf, log.p = FALSE, ...)

Arguments

p

(Numeric) Vector of probabilities

shape

(Numeric) Vector of Weibull shape parameters (default: 0)

scale

(Numeric) Vector of Weibull scale parameters (default: Inf)

a

(Numeric) Vector of lower truncation points

b

(Numeric) Vector of upper truncation points

log.p

(Logical) Whether p represents p or log(p) (default: FALSE)

...

Currently does nothing

Value

(Numeric) vector of quantile function values

Examples

1
qtweibull(0.5, 1, 5, 1.5, 2.5)

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