ddirichlet: Dirichlet distribution

Description Usage Arguments Value Author(s)

View source: R/dirichlet.R

Description

A multivariate generalization of the Beta distribution.

Usage

1
2
3
ddirichlet(x, alpha, log = FALSE)

rdirichlet(n, alpha)

Arguments

x

vector of quantiles.

alpha

Vector of alpha parameter values.

log

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

n

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

Value

For ddirichlet, the kernel density. For rdirichlet, a matrix of draws with n rows and length(alpha) columns.

Author(s)

Alexey Shiklomanov


ashiklom/hector_permafrost_emit documentation built on March 26, 2020, 12:15 a.m.