anova_results: Results of ANOVA in APA standard

Description Usage Arguments Value Author(s) Examples

View source: R/test_results.R

Description

Function to print results of an ANOVA in APA standard (F(df, df) = F; p = p)

Usage

1

Arguments

y

a numeric vector (dependent variable)

x

a factor (grouping variable)

Value

"F(df, df) = F; p = p"

Author(s)

Dominik Vogel

Examples

1
2
3
4
5
6
7
8
9
set.seed(1)
df <- data.frame(happy = c(rnorm(n = 10, mean = 3, sd = 0.5),
                           rnorm(n = 10, mean = 3.4, sd = 0.5),
                           rnorm(n = 10, mean = 3, sd = 0.5)),
                 treatment = factor(c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
                                      1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
                                      2, 2, 2, 2, 2, 2, 2, 2, 2, 2)))

anova_results(df$happy, df$treatment)

DominikVogel/vogelR documentation built on May 23, 2019, 4:12 p.m.