The distribution function for the weighted sums of multinomial distribution
pmultinom(x, k, m, w)
The quantile of weighted sum.
The total number of balls drawn from the urn.
Numeric non-negative vector of length N, specifying the probability for drawing the ball of each color; is internally normalized to sum 1. Infinite and missing values are not allowed. N is the number of colors.
Numeric non-negative vector of length N, specifying the weight of balls of each color.
This function will return the probablity of \(P(X \le x)\).
This function gives the distribution function for the weighted sums of multinomial
distribution by recursively calling the binomial distribution density function
dbinom
.