scaspci | R Documentation |
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,
bcf = FALSE,
bign = n,
cc = FALSE,
...
)
x |
Numeric vector of number of events. |
n |
Numeric vector of sample sizes (for binomial rates) or exposure times (for Poisson rates). |
distrib |
Character string indicating distribution assumed for the input data: "bin" = binomial (default), "poi" = Poisson. |
level |
Number specifying confidence level (between 0 and 1, default 0.95). |
bcf |
Logical (default TRUE) indicating whether to apply bias correction in the score denominator. Applicable to distrib = "bin" only. |
bign |
Sample size N to be used in the calculation of bcf, if different from n. |
cc |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.