BFs {BayesRep} | R Documentation |
Sceptical Bayes factor
Description
Computes the sceptical Bayes factor
Usage
BFs(to, so, tr, sr, truncate = FALSE, zo = NULL, zr = NULL, c = NULL)
Arguments
to |
Original effect estimate |
so |
Standard error of the original effect estimate |
tr |
Replication effect estimate |
sr |
Standard error of the replication effect estimate |
truncate |
Logical indicating whether advocacy prior should be truncated
to direction of the original effect estimate (i.e., a one-sided test).
Defaults to |
zo |
Original z-value |
zr |
Replication z-value |
c |
Relative variance |
Details
The sceptical Bayes factor is a summary measure of the following two-step reverse-Bayes procedure for assessing replication success:
Use the data from the original study to determine the standard deviation
of a sceptical normal prior
such that the Bayes factor contrasting the null hypothesis
to the sceptic's hypothesis
equals a specified level
. This prior represents a sceptic who remains unconvinced about the presence of an effect at level
.
Use the data from the replication study to compare the sceptic's hypothesis
to the advocate's hypothesis
. The prior of the effect size under
is its posterior based on the original study and a uniform prior, thereby representing the position of an advocate of the original study. Replication success at level
is achieved if the Bayes factor contrasting
to
is smaller than
, which means that the replication data favour the advocate over the sceptic at a higher level than the sceptic's initial objection. The sceptical Bayes factor
is the smallest level
at which replication success can be established.
The function can be used with two input parametrizations, either on the
absolute effect scale (to
, so
, tr
, sr
) or
alternatively on the relative z-scale (zo
, zr
, c
). If
an argument on the effect scale is missing, the z-scale is automatically
used and the other non-missing arguments on the effect scale ignored.
Value
The sceptical Bayes factor .
indicates replication
success, the smaller the value of
the higher the degree of replication success. It is possible that the
result of the replication is so inconclusive that replication success
cannot be established at any level. In this case, the sceptical Bayes
factor does not exist and the function returns
NaN
.
Author(s)
Samuel Pawel
References
Pawel, S. and Held, L. (2022). The sceptical Bayes factor for the assessment of replication success. Journal of the Royal Statistical Society Series B: Statistical Methodology, 84(3): 879-911. doi:10.1111/rssb.12491
See Also
Examples
to <- 2
tr <- 2.5
so <- 1
sr <- 1
BFs(to = to, so = so, tr = tr, sr = sr)
BFs(zo = to/so, zr = tr/sr, c = so^2/sr^2)