format_ci | R Documentation |
The function rounds the estimate, lower and upper confidence interval to the same magnitude. The magnitude shows the width of the confidence interval with two significant digits.
format_ci(
estimate,
se,
lcl,
ucl,
interval = 0.95,
link = c("identity", "log", "logit"),
max_digit = 4,
percent = FALSE,
sign = FALSE,
change = FALSE
)
estimate |
The estimate in the |
se |
The standard error in the |
lcl |
The lower confidence limit.
Ignored when |
ucl |
The upper confidence limit.
Ignored when |
interval |
The coverage of the confidence interval.
Only used when |
link |
The transformation of |
max_digit |
The maximum number of significant digits to display.
Defaults to |
percent |
Display the interval as a percentage
(= multiply by 100 and append |
sign |
Always add the sign to the text. (e.g. |
change |
Display interval as a change.
Subtract |
Other display functions:
class_labels()
format_ci(0.512345, 1)
format_ci(0.512345, 1, interval = 0.9)
format_ci(0.512345, 1, link = "log")
format_ci(0.512345, 1, link = "logit")
format_ci(0.512345, 10)
format_ci(0.512345, 0.1)
format_ci(0.512345, 0.01)
format_ci(0.512345, 0.001)
format_ci(0.512345, 0.0001)
format_ci(0.512345, 0.00001)
format_ci(0.512345, 0.00001, max_digit = 10)
format_ci(0.512345, 0.5)
format_ci(-0.1, lcl = -0.1999, ucl = 0.1234)
format_ci(-0.1, lcl = -0.1999, ucl = 0.1234, percent = TRUE)
format_ci(-0.1, lcl = -0.1999, ucl = 0.1234, sign = TRUE)
format_ci(-0.1, lcl = -0.1999, ucl = 0.1234, percent = TRUE, sign = TRUE)
format_ci(-0.1, lcl = -0.1999, ucl = 0.1234)
format_ci(0.512345e-6, 1e-6)
format_ci(0.512345e-7, 1e-7)
format_ci(0.512345e-7, 1e-8)
format_ci(0.512345e-7, 1e-9)
format_ci(0.512345, 0.1, link = "log", percent = TRUE, change = FALSE)
format_ci(0.512345, 0.1, link = "log", percent = TRUE, change = TRUE)
format_ci(0, lcl = 0, ucl = 0)
format_ci(1, lcl = 1, ucl = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.