welchT: Welch t-test

Description Usage Arguments Value Examples

View source: R/homework.R

Description

Calculates t-statistic, degrees of freedom and associated p-value, for two samples. Uses the satterwaithe approximation for cases where the number of samples in the two vectors differ.

Usage

1
welchT(x, y)

Arguments

x

A numeric vector from first sample.

y

A numeric vector from second sample.

Value

A list of named variables 't', 'df' and 'p', corresponding to t-statistic, degrees of freedom, and associated p-value, respectively.

Examples

1
2
3
x=rnorm(30)+1
y=rnorm(35)+3
welchT(x,y)

loublanpain/BMI585FinalProjectLouBlanpain documentation built on Dec. 21, 2021, 11:49 a.m.