File: zn.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 (5 lines) | stat: -rw-r--r-- 130 bytes parent folder | download | duplicates (3)
1
2
3
4
5
zn.hypergeo <- function(sep, N, d, se = 1) {
  n <- (N / se) * (1 - (1 - sep)^(1 / d))
  n[n > N] <- NA
  return(ceiling(n))
}