Evidence ratios from brms::hypothesis() (Evid.Ratio): a
Savage–Dickey density ratio for a point hypothesis, posterior odds for
a directional one. Printed as ≥ 10,000 from 10,000 up (an infinite
ratio means no posterior draw contradicted the hypothesis), rounded to
an integer with a thousands separator from 1,000, to one decimal from
10, and to digits decimals below.
Arguments
- x
Numeric vector of evidence ratios, 0 or more;
NAandInfallowed.- digits
Decimals below 10.
- 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.- symbol
TRUEprependsER =(orER ≥at the bound).
Details
Small ratios print 0.00; apabayes keeps the ratio as brms reports
it and, for point hypotheses, reports 1 / Evid.Ratio through
apa_bf() as the Bayes factor against equality.
Examples
apa_er(c(0.5, 5.3412, 23.456, 2345.6, 12345, Inf, NA))
#> [1] "0.50" "5.34" "23.5" "2,346" "≥ 10,000" "≥ 10,000" NA
apa_er(12345, symbol = TRUE)
#> [1] "ER ≥ 10,000"
