View source: R/t-student_distribution.R
tstudent | R Documentation |
This function calculates the t-statistic for sample data.
tstudent(
x = NULL,
u = NULL,
s = NULL,
n = NULL,
learn = FALSE,
interactive = FALSE
)
x |
Optional sample mean (not needed for interactive mode) |
u |
Optional population mean (not needed for interactive mode) |
s |
Optional standard deviation (not needed for interactive mode) |
n |
Optional sample size (not needed for interactive mode) |
learn |
Logical, if TRUE shows step-by-step explanation |
interactive |
Logical, if TRUE enables interactive practice mode |
The t-statistic (for non-interactive mode)
x <- 52.9
u <- 50
s <- 3
n <- 10
# Simple calculation
tstudent(x, u, s, n)
# Learning mode
tstudent(x, u, s, n, learn = TRUE)
# Interactive mode
if(interactive()){
tstudent(interactive = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.