tstudent: Student's t Distribution Function

View source: R/t-student_distribution.R

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


UAHDataScienceSF documentation built on April 3, 2025, 10:44 p.m.