Learn R Programming

uwo4419 (version 0.3.0)

tTest: Difference of Means Test

Description

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

Usage

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

Run this code
# NOT RUN {
data(alberta)
alberta$sex <- rio::factorize(alberta$sex)
tTest("sex", "k7", data=alberta)
# }

Run the code above in your browser using DataLab