Learn R Programming

distributional (version 0.1.0)

dist_multinomial: The Multinomial distribution

Description

maturing

Usage

dist_multinomial(size, prob)

Arguments

size

integer, say \(N\), specifying the total number of objects that are put into \(K\) boxes in the typical multinomial experiment. For dmultinom, it defaults to sum(x).

prob

numeric non-negative vector of length \(K\), specifying the probability for the \(K\) classes; is internally normalized to sum 1. Infinite and missing values are not allowed.

See Also

stats::Multinom

Examples

Run this code
# NOT RUN {
dist_multinomial(size = c(4, 3), prob = list(c(0.3, 0.5, 0.2), c(0.1, 0.5, 0.4)))

# }

Run the code above in your browser using DataLab