Nothing
poisBayes <-
function( xobs, n, s, t, a, b, alpha = 0.05)
{
if (missing(a) || missing(b))
stop(paste("The arguments 'a' and 'b' are missing.",
"Please, provide values in input."))
ns <- n * s
nst <- ns + t
if (is.finite(b)) {
prob <- (b * ns + 1) / (b * nst + 1)
} else { # when 'b' is infinite
prob <- ns / nst
}
res <- list()
res$lower <- qnbinom(alpha, xobs + a, prob) + 1
res$upper <- qnbinom(alpha, xobs + a, prob, lower.tail = FALSE) - 1
return(res)
}
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.