tbeta: Truncated Beta Functions

Description Usage Arguments Value Author(s) Examples

Description

pdf, cdf, inverse cdf, and random deviates of the truncated beta distribution.

Usage

1
2
3
4
rtbeta(n, alpha, beta, a=0, b=1)
dtbeta(x, alpha, beta, a=0, b=1)
ptbeta(q, alpha, beta, a=0, b=1)
qtbeta(p, alpha, beta, a=0, b=1)

Arguments

x,q

vector of quantiles.

p

vector of probabilities.

n

number of observations. If length(n) > 1, the length is taken to be the number required.

alpha

vector of alpha parameters.

beta

vector of beta parameters.

a

vector of lower truncation limits

b

vector of upper truncation limits

Value

dtbeta gives the density, ptbeta gives the distribution function, qtbeta gives the quantile function, and rtbeta generates random deviates.

Author(s)

Rob Carnell

Examples

1
2
3
4
  rtbeta(5, 1, 2, a=0.5, b=0.9)
  dtbeta(seq(0, 1, by=0.1), 1, 2, a=0.5, b=0.9)
  ptbeta(seq(0, 1, by=0.1), 1, 2, a=0.5, b=0.9)
  qtbeta(seq(0, 1, by=0.1), 1, 2, a=0.5, b=0.9)

TruncatedDistributions documentation built on May 2, 2019, 4:52 p.m.