tstudent {UAHDataScienceSF}R Documentation

Student's t Distribution Function

Description

This function calculates the t-statistic for sample data.

Usage

tstudent(
  x = NULL,
  u = NULL,
  s = NULL,
  n = NULL,
  learn = FALSE,
  interactive = FALSE
)

Arguments

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

Value

The t-statistic (for non-interactive mode)

Examples

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)
}


[Package UAHDataScienceSF version 1.0.0 Index]