95% CrI [0.20, 0.74], with the same digits and leading-zero rule as
the estimate it accompanies and a label that names the interval type.
Usage
apa_ci(
low,
high,
level = 0.95,
label = "CrI",
digits = 2,
leading_zero = TRUE,
big_mark = TRUE,
markup = NULL
)Arguments
- low, high
Numeric vectors of the same length (one of them may have length 1);
NAand infinite bounds allowed.- level
Single number in (0, 1), printed as a percentage before the label:
0.95gives95%,0.9gives90%.- label
Interval name after the level:
"CrI"(equal-tailed credible interval, the default),"HDI","HPD","CI".NULLdrops the prefix and returns the bracket only, for table cells whose header carries the level.- digits
Single whole number of decimals to print (fixed, never significant digits).
- leading_zero
FALSEdrops the zero before the decimal point (.47,-.47), the APA rule for statistics that cannot exceed 1 in absolute value (correlations, standardized paths, proportions). Values of 1 or more keep their digits.- big_mark
TRUEseparates groups of three digits with a comma (1,240), the APA rule for numbers of 1,000 or more.- markup
NULLor one of"md","latex","typst","plain".NULLusesgetOption("apabayes.markup"), then the knitr output format, then"md". Decides the minus sign (U+2212 outside"plain") and the infinity symbol.
