ANOVA_HOV_assumption: Analysis of Homogeneity of Variance for ANOVA test

Description Usage Arguments Value Author(s) See Also Examples

Description

Compute and reture the p-value of the lavene test. Plot out residaul plot and write a avova table to a .csv file.

Usage

1

Arguments

adjusted_weight

The value is yield (numeric vector), whcih is adjusted to 13 percent moisture

Treatment

The treatment (categorical vector) for each plot

...

Let function have more flexibility

Value

P-value for the test

Author(s)

Helen Lin

See Also

lawstat package, adjusted_weight, anova and levene.test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
test <- data.frame("Plot_ID" = 1:3, 
                   "Treatment" = c("A","B","C"), 
                   "weight" = c(5.55,5.87,6.5,6.18,5.97,6.5), 
                   "moisture"=c(12.1,12.3,12.4,12.3,12.4,12.2), 
                   stringsAsFactors = FALSE)

adj_weight <- adjusted_weight(test$weight, test$moisture, 13, 60)

test$adj_weight <- adjusted_weight(test$weight, test$moisture, 13, 60)

ANOVA_HOV_assumption(test$adj_weight, test$Treatment)

henganl2/Yield documentation built on May 8, 2019, 1:36 a.m.