anova1: One-way analysis of variance

Description Usage Arguments Value Examples

View source: R/ch13-fn.R

Description

One-way analysis of variance

Usage

1
2
anova1(y, f, xl = "Factor", yl = "Response Variable", step = 0:7,
  alp = 0.05, dig = 4)

Arguments

y

Response variable data

f

Factors (same length as y)

xl

Label of x-axis, Default: 'Factor'

yl

Label of y-axis, Default: 'Response Variable'

step

Steps of the analysis of variance, Default: 0:7

alp

Level of significance, Default: 0.05

dig

Number of digits below the decimal point, Default: 4

Value

None.

Examples

1
2
3
y = c(79,83,88,78,75, 81,89,91,84,86,82, 86,91,93,90,89, 76,81,82,79)
f = c(rep(150,5), rep(200,6), rep(250,5), rep(300,4))
anova1(y, f, xl="Temp", yl="Yield")

tjssu/Rstat documentation built on Aug. 8, 2020, 12:38 p.m.