beta: The Beta Distribution

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Density and random generation for the Beta distribution with parameters shape1 and shape2.

Usage

1
2
gdbeta(x, shape1, shape2, ncp = 0, log = FALSE, type = "d")
grbeta(n, shape1, shape2, ncp = 0, type = "d")

Arguments

x

vector of quantiles

n

number of random values to return

shape1, shape2

positive parameters of the Beta distribution

ncp

must be 0 at this point

log

logical; if TRUE, probabilities p are given as log(p)

type

specify the type; may be "double", "single" (or short form "d" or "s")

Details

Very similar to the R stats functionality.

Value

gdbeta gives the density and grbeta generates random deviates.

Author(s)

Nathan Morris

See Also

dbeta

Examples

1
myRndNums = grbeta(10,c(1,2), c(1,2,3,4,5))

njm18/gmatrix documentation built on May 23, 2019, 7:07 p.m.