powered by
This function calculates the t-statistic for sample data.
tstudent( x = NULL, u = NULL, s = NULL, n = NULL, learn = FALSE, interactive = FALSE )
The t-statistic (for non-interactive mode)
Optional sample mean (not needed for interactive mode)
Optional population mean (not needed for interactive mode)
Optional standard deviation (not needed for interactive mode)
Optional sample size (not needed for interactive mode)
Logical, if TRUE shows step-by-step explanation
Logical, if TRUE enables interactive practice 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) }
Run the code above in your browser using DataLab