View source: R/ttest_interpret.R
| ttest_interpret | R Documentation |
T-Test with Plain-English Interpretation
ttest_interpret(
x,
y = NULL,
mu = 0,
paired = FALSE,
conf.level = 0.95,
var_name = "Variable"
)
x |
A numeric vector (group 1, or the only group for one-sample) |
y |
A numeric vector (group 2, for independent samples). Default NULL. |
mu |
Hypothesised mean for one-sample t-test. Default 0. |
paired |
Logical. TRUE for paired t-test. Default FALSE. |
conf.level |
Confidence level. Default 0.95. |
var_name |
Optional label for the report. Default "Variable" |
An object of class statease_ttest containing test
results and interpretation. Use print() to display the
formatted report.
result <- ttest_interpret(c(23,45,12,67,34), c(19,38,22,51,29))
print(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.