anova1: One-way analysis of variance

View source: R/ch13-fn.R

anova1R Documentation

One-way analysis of variance

Description

One-way analysis of variance

Usage

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

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")

adoocavo/Rstat_M1 documentation built on March 19, 2022, 3:34 a.m.