welchT: Perform Welch's T-Test

Description Usage Arguments Value Examples

View source: R/hw06Functions.R

Description

Perform Welch's T-Test

Usage

1
welchT(x, y)

Arguments

x

vector of values of length n

y

vector of values of length n

Value

returns vector of length 5 with Welch's T statistic, degrees of freedom, p-value, mean of group x, and mean of group y

Examples

1
2
welchT(c(1.42, 8.10, 9.22), c(10.4, 4.52, 3.44))
welchT(c(1.42, 8.10, 9.22, 20.92, 5.67, 0.45), c(1.99, 8.09, 9.13, 9.10, 5.55, 0.11))

hmumme/bmi585hmumme documentation built on Dec. 20, 2021, 4:46 p.m.