Description Usage Arguments Value Author(s) See Also Examples
Compute and reture the p-value of the lavene test. Plot out residaul plot and write a avova table to a .csv file.
1 | ANOVA_HOV_assumption(adjusted_weight, Treatment, ...)
|
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 |
P-value for the test
Helen Lin
lawstat package,
adjusted_weight
, anova
and levene.test
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.