tvalue: T value for difference in independent means when SD in...

tvalueR Documentation

T value for difference in independent means when SD in population is unknown

Description

Calculates the t value and SE, given two numeric vectors

Usage

tvalue(x, y, print = FALSE)

Arguments

x

A numeric vector.

y

A second numeric vector (Independent).

print

A logical,whether to print the usual t.test print. default is set to FALSE.

Value

meandiff The mean difference between the groups.

t value The t value.

SE Standard Error.

df Degrees of freedom.

p.value The P Value of the result.

See Also

https://www.youtube.com/watch?v=3azuAaOJack for further explenation.

Examples

x <- c(17,4,58,96,0,12,14)
y <- c(11,47,62,0,96,12,47,5)
tvalue(x,y,print=TRUE)

bgupsych/bgupsych documentation built on Nov. 1, 2023, 9:41 a.m.