qtruncate: Compute quantile function of a truncated distribution

Description Usage Arguments Value Examples

Description

This function generates the quantile function of a truncated specified distribution. Passing the distribution conventional name as argument, it returns the quantile function of the truncated specified distribution.

Usage

1

Arguments

dist

character string indicating distribution conventional name. It can be set as:

  • beta Beta Distribution

  • binom Binomial Distribution

  • cauchy Cauchy Distribution

  • chisq Chi-Square Distribution

  • exp Exponential Distribution

  • f F Distribution

  • gamma Gamma Distribution

  • geom Geometric Distribution

  • hyper Hypergeometric Distribution

  • logis Logistic Distribution

  • lnorm Log Normal Distribution

  • nbinom Negative Binomial Distribution

  • norm Normal Distribution

  • pois Poisson Distribution

  • t Student t Distribution

  • unif Uniform Distribution

  • weibull Weibull Distribution

  • wilcox Wilcoxon Rank Sum Statistic Distribution

  • signrank Wilcoxon Signed Rank Statistic Distribution

Value

quantile function of the truncated specified distribution

Examples

1
2
3
4
5
# Weibull distribution
qtweibull <-qtruncate("weibull")
qtweibull(p = 1:9/10, shape = 1, scale = 1.5, L = 3, U = 6)
qtweibull(p = 1:9/10, shape = 1, scale = 1.5,  L = 3, U = 6, lower.tail = F, log.p = F)
qtweibull(p = log(1:9/10), shape = 1, scale = 1.5, log.p = T, L = 3, U = 6, lower.tail = F)

veronicagiro/qtruncate documentation built on May 3, 2019, 6:11 p.m.