| cii | R Documentation |
Calculates confidence intervals for means, proportions, and variances.
cii(
n,
mean = NULL,
sd = NULL,
events = NULL,
variance = NULL,
type = c("auto", "mean", "proportion", "variance"),
method = c("exact", "wilson", "wald"),
level = 0.95,
digits = 3,
show = TRUE,
console = FALSE
)
ci(
x,
data = NULL,
type = c("auto", "mean", "proportion", "variance"),
event = NULL,
method = c("exact", "wilson", "wald"),
level = 0.95,
digits = 3,
show = TRUE,
console = FALSE
)
n |
Sample size. |
mean, sd |
Mean and standard deviation. |
events |
Number of events for a proportion. |
variance |
Sample variance. |
type |
|
method |
Proportion confidence interval method. |
level |
Confidence level. |
digits |
Decimal places. |
show |
Logical; open the formatted result in the Viewer. Default |
console |
Logical; also print the traditional text result in the Console. Default |
x |
Variable to analyze. |
data |
Data frame. If |
event |
Event level for a binary variable. |
Invisibly returns an object of class r4vn_stat.
cii(50, mean = 10, sd = 2)
cii(100, events = 45, type = "proportion", method = "wilson")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.