Skip to contents

MSbetween, MSwithin and F (equations 9.5 to 9.7, 9.12) and the block design with treatment and block effects (9.13). Mirrors ca9e5 to ca9e7, ca9e12, ca9e13.

Usage

morie_experiment_anova(groups = NULL, y = NULL, treatment = NULL, block = NULL)

Arguments

groups

List of numeric vectors (one-way form).

y, treatment, block

Long-format vectors (block form).

Value

List with the one-way and, when supplied, block results.

Examples

# one-way ANOVA on three groups
r <- morie_experiment_anova(groups = list(c(4.1, 5.0, 4.6),
                                          c(6.2, 5.8, 6.6),
                                          c(5.1, 4.9, 5.5)))
c(F = r$f, df1 = r$df1, df2 = r$df2)
#>        F      df1      df2 
#> 13.45255  2.00000  6.00000