Skewness-corrected asymptotic score ("SCAS") confidence intervals for single binomial or Poisson rate using closed-form calculations. This function is vectorised in x, n.
scaspci(x, n, distrib = "bin", level = 0.95, cc = FALSE, ...)
Numeric vector of number of events.
Numeric vector of sample sizes (for binomial rates) or exposure times (for Poisson rates).
Character string indicating distribution assumed for the input data: "bin" = binomial (default), "poi" = Poisson.
Number specifying confidence level (between 0 and 1, default 0.95).
Number or logical (default FALSE) specifying (amount of) continuity correction. Numeric value is taken as the gamma parameter in Laud 2017, Appendix S2 (default 0.5 for 'conventional' correction if cc = TRUE).
Other arguments.
Pete Laud, p.j.laud@sheffield.ac.uk