conf_int {tidySEM} | R Documentation |
Format confidence intervals
Description
Creates 'APA'-formatted confidence intervals, either from an object for which
a method exists, or from the arguments lb
and ub
. When argument
x
is a numeric vector, it is also possible to construct a confidence
interval using the standard error (se
) and a percentile interval
(ci
).
Usage
conf_int(x, digits = 2, se = NULL, lb = NULL, ub = NULL, ci = 95)
Arguments
x |
Optional. An object for which a method exists. |
digits |
Integer. The number of digits to round the confidence boundaries to. |
se |
Optional, numeric. Standard error of the parameters. |
lb |
Optional, numeric. Lower boundary of confidence intervals. |
ub |
Optional, numeric. Upper boundary of confidence intervals. |
ci |
Optional, numeric. What percentage CI to use (only used when
computing CI from a numeric vector |
Value
A character vector of formatted confidence intervals.
Author(s)
Caspar J. van Lissa
See Also
table_results est_sig
Other Reporting tools:
est_sig()
,
table_fit()
,
table_prob()
,
table_results()
Examples
conf_int(x = c(1.325, 2.432), se = c(.05336, .00325))