Nothing
truncatedPbg <-
function (p, trunc = 0.2)
{
stopifnot((trunc>0)&(trunc<=1))
stopifnot(is.vector(p))
stopifnot((min(p)>=0)&(max(p)<=1))
w <- prod(p^(p<=trunc))
L <- length(p)
if (w > trunc) {
1
}
else {
mix <- stats::dbinom(1:L,L,trunc)
prob <- 1 - stats::pgamma(-log(w/(trunc^(1:L))),1:L)
sum(mix*prob)
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.