t3way: A three-way ANOVA for trimmed means.

Description Usage Arguments Value References See Also Examples

View source: R/t3way.R

Description

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

Usage

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

Arguments

formula

an object of class formula.

data

an optional data frame for the input data.

tr

trim level for the mean.

...

currently ignored.

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

References

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

See Also

t1way, t2way

Examples

1
t3way(aggressive ~ degree*gender*type, data = movie)

Example output

Call:
t3way(formula = aggressive ~ degree * gender * type, data = movie)

                       value p.value
degree             3.3089497   0.085
gender             1.3845004   0.260
type               1.7102122   0.207
degree:gender      3.6013168   0.073
degree:type        0.3918961   0.540
gender:type        8.7595078   0.008
degree:gender:type 3.2614250   0.087

WRS2 documentation built on July 20, 2021, 9:06 a.m.

Related to t3way in WRS2...