anovaSummarized: Anova F test

Description Usage Arguments Details Value Author(s) Examples

View source: R/anovaSummarized.R

Description

ANOVA F test when given summarized data (sample sizes, means and standard deviations).

Usage

1
anovaSummarized(N, mn, stdev)

Arguments

N

a vector with the sample sizes

mn

a vector of means, one for each group in the sample

stdev

a vector of standard deviations, one for each group in the sample

Details

Perform an ANOVA F test when presented with summarized data: sample sizes, sample means and sample standard devations.

Value

Returns invisibly a list

Treatment SS

The treatment sum of squares (also called the "between sum of squares").

Residual SS

Residual sum of squares (also called the "within sum of squares").

Degrees of Freedom

a vector with the numerator and denominator degrees of freedom.

Treatment Mean Square

Treatment SS/numerator DF

Residual Mean Square

Residual SS/denominator DF

Residual Standard Error

Square root of Residual Mean Square

F

the F statistic

P-value

p-value

...

Author(s)

Laura Chihara

Examples

1
2
3
4
5
6
7
8
#use the data set chickwts from base R
head(chickwts)

N <- table(chickwts$feed)
stdev <- tapply(chickwts$weight, chickwts$feed, sd)
mn <- tapply(chickwts$weight, chickwts$feed, mean)

anovaSummarized(N, mn, stdev)

CarletonStats documentation built on May 29, 2017, 11:20 p.m.