Learn R Programming

WRS2 (version 1.1-6)

t3way: A three-way ANOVA for trimmed means.

Description

This function computes a three-way ANOVA for trimmed means with all interactions effects.

Usage

t3way(formula, data, tr = 0.2, ...)

Value

Returns an object of class t3way containing:

Qa

first main effect

A.p.value

p-value first main effect

Qb

second main effect

B.p.value

p-value second main effect

Qc

third main effect

C.p.value

p-value third main effect

Qab

first two-way interaction effect

AB.p.value

p-value first two-way interaction effect

Qac

second two-way interaction effect

AC.p.value

p-value second two-way interaction effect

Qbc

third two-way interaction effect

BC.p.value

p-value third two-way interaction effect

Qabc

three-way interaction effect

ABC.p.value

p-value three-way interaction effect

call

function call

varnames

variable names

Arguments

formula

an object of class formula.

data

an optional data frame for the input data.

tr

trim level for the mean.

...

currently ignored.

References

Wilcox, R. (2012). Introduction to Robust Estimation and Hypothesis Testing (3rd ed.). Elsevier.

See Also

t1way, t2way

Examples

Run this code
t3way(aggressive ~ degree*gender*type, data = movie)

Run the code above in your browser using DataLab