Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pkk

Probability that all multinomial categories have a non-zero count.


Description

Calculates the probability that all categories in a multinomial have a non-zero count.

Usage

pkk(prob, size)

Arguments

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.

size

integer, say N, specifying the total number of objects that are put into K boxes in the typical multinomial experiment.

Value

numeric; probability that there is at least one object ine ach ofthe K boxes

Author(s)

Jarrod Hadfield j.hadfield@ed.ac.uk

Examples

p<-runif(4)
pkk(p, 10)

MCMCglmm

MCMC Generalised Linear Mixed Models

v2.32
GPL (>= 2)
Authors
Jarrod Hadfield
Initial release
2021-03-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.