t1way: Trimmed means ANOVA

Description Usage Arguments Value Author(s) Examples

Description

A heteroscedastic one-way ANOVA for trimmed means using a generalization of Welch's method.

Usage

1
2
3
4
  t1way(x, tr = 0.2, grp = NA)

  ## S3 method for class 't1way'
 print(x)

Arguments

x

A list consisting of the data, where Length(x) must correspond to the total number of groups.

tr

Proportion to be trimmed; default = .2.

grp

Vector indicating which subset of the groups to be compared. Default is NA

Value

Returns a list with items

TEST

Test statistic.

nu1

Degrees of freedom 1.

nu2

Degrees of freedom 2.

p.value

Probability value.

Author(s)

Rand Wilcox, Rob Cribbie and Phil Chalmers

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
data(nhl_data)
attach(nhl_data)

#make a list containing the variable positions
ptslist<-list(Points[Pos=="Center"],Points[Pos=="Left Wing"],
Points[Pos=="Right Wing"], Points[Pos=="Defense"])
t1way(ptslist)

## End(Not run)

mattsigal/psyc6130 documentation built on May 21, 2019, 1:26 p.m.