File: zsep.hypergeo.R

package info (click to toggle)
r-cran-epir 2.0.80%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,332 kB
  • sloc: makefile: 5
file content (7 lines) | stat: -rw-r--r-- 154 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
zsep.hypergeo <- function(N, n, d, se = 1) {
  d <- pmin(N, d)
  sep <- 1 - (1 - se * n / N)^d
  sep[n == 0] <- 0
  sep[n > N] <- NA
  return(sep)
}