anova1: One-way analysis of variance

Description Usage Arguments Value Examples

View source: R/anova1.R

Description

One-way analysis of variance

Usage

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

jhk0530/Rstat documentation built on Dec. 20, 2021, 11:11 p.m.