Learn R Programming

uwo4419 (version 0.3.0)

all_tTest: Difference of Means Test

Description

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

Usage

all_tTest(x, y, data,
  adjust.method= c("none", "holm", "hochberg",
  "hommel", "bonferroni", "BH", "BY", "fdr"), ...)

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.

adjust.method

Method to for adjusting p-values for multiple testing. It uses the same set of choices as p.adjust.

...

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

Value

A list of class allTT with one element 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)
all_tTest("k6group", "k3c", data=alberta)
# }

Run the code above in your browser using DataLab