View source: R/grimmer-explain.R
| grimmer_explain | R Documentation |
grimmer_explain() tests a single mean and SD like
grimmer() does, but also lays out the calculation in plain words. It
starts with the GRIM test of the mean, as in grim_explain(), and goes
on to the sum of squares that each possible sum implies with the SD.
The text is built from the numbers that decide the test itself, so it
always agrees with grimmer().
grimmer_explain(
x,
sd,
n,
digits_x,
digits_sd,
items_averaged,
data_type,
sd_meaning = c("sd_sample", "sd_pop", "sd_sample_or_pop", "se"),
rounding = "up_or_down",
threshold = 5,
symmetric = FALSE
)
x |
Numeric. The reported mean. |
sd |
Numeric. The reported standard deviation. |
n |
Integer. The reported sample size. |
digits_x |
Integer. The number of decimal places in |
digits_sd |
Integer. The number of decimal places in |
items_averaged |
Integer. As in |
data_type |
String. As in |
sd_meaning |
String. What |
rounding |
String. The rounding method assumed to have produced |
threshold |
Numeric. For |
symmetric |
Logical. If |
An object of class scrutiny_explain: a list with the result as
consistency (TRUE, FALSE, or NA), the explanation's paragraphs,
and the test and its inputs. It prints as the explanation.
grimmer_explain(
x = 5.23,
sd = 2.55,
n = 35,
digits_x = 2,
digits_sd = 2,
items_averaged = 1,
data_type = "integer"
)
grimmer_explain(
x = 5.23,
sd = 2.55,
n = 31,
digits_x = 2,
digits_sd = 2,
items_averaged = 1,
data_type = "integer"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.