powered by
Calculate probability masses for integer valued Categorical random samples.
dCategorical(x, p)
integer, categorical samples.
numeric, probabilities.
A numeric vector of the same length of 'x'.
rCategorical
# NOT RUN { dCategorical(x=c(1L,2L,1L),p=c(1,2)) # }
Run the code above in your browser using DataLab