ptruncate: Compute probability function of a truncated distribution

Description Usage Arguments Value Examples

View source: R/ptruncate.R

Description

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

Usage

1

Arguments

dist

character string indicating distribution 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

probability function of the truncated specified distribution

Examples

1
2
3
4
5
# Normal distribution
ptnorm <-ptruncate("norm")
ptnorm(q = 1:10, mean = 3, sd = 2, L = 2, U = 6)
ptnorm(q = 1:10, mean = 3, sd = 2, L = 2, U = 6, log.p = T)
ptnorm(q = 1:10, mean = 3, sd = 2, L = 2, U = 6, log.p = T, lower.tail = F)

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