tTest: Difference of Means Test

Description Usage Arguments Value Examples

View source: R/4419_functions.r

Description

Produces a more helpful summary of the existing t.test function.

Usage

1
tTest(x, y, data, ...)

Arguments

x

Character string giving name of grouping variable.

y

Character string giving name of continuous variable.

data

Data where both x and y can be found.

...

Other arguments to be passed down to the t.test function.

Value

A list of class tTest with two elements:

sum

Means, n, and standard errors for both groups and the difference.

tt

The result produced by t.test.

Examples

1
2
3
data(alberta)
alberta$sex <- rio::factorize(alberta$sex)
tTest("sex", "k7", data=alberta)

uwo4419 documentation built on Oct. 23, 2020, 8:08 p.m.