R/poisUNIF.R

Defines functions poisUNIF

Documented in poisUNIF

poisUNIF <-
function(xobs, n, s, t, alpha = 0.05)

{
  ns <- n * s
  nst <- ns + t
  prob <- ns / nst

  res <- list()
  res$lower <- qnbinom(alpha, xobs + 1, prob) + 1
  res$upper <- qnbinom(alpha, xobs + 1, prob, lower.tail = FALSE) - 1
  return(res)
}

Try the plpoisson package in your browser

Any scripts or data that you put into this service are public.

plpoisson documentation built on May 10, 2022, 1:08 a.m.