debit | R Documentation |
debit()
tests summaries of binary data for consistency: If the
mean and the sample standard deviation of binary data are given, are they
consistent with the reported sample size?
The function is vectorized, but it is recommended to use debit_map()
for testing multiple cases.
debit(
x,
sd,
n,
formula = "mean_n",
rounding = "up_or_down",
threshold = 5,
symmetric = FALSE
)
x |
String. Mean of a binary distribution. |
sd |
String. Sample standard deviation of a binary distribution. |
n |
Integer. Total sample size. |
formula |
String. Formula used to compute the SD of the binary
distribution. Currently, only the default, |
rounding |
String. Rounding method or methods to be used for
reconstructing the SD values to which |
threshold |
Integer. If |
symmetric |
Logical. Set |
Logical. TRUE
if x
, sd
, and n
are mutually consistent,
FALSE
if not.
Heathers, James A. J., and Brown, Nicholas J. L. 2019. DEBIT: A Simple Consistency Test For Binary Data. https://osf.io/5vb3u/.
debit_map()
applies debit()
to any number of cases at once.
# Check single cases of binary
# summary data:
debit(x = "0.36", sd = "0.11", n = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.