tidy_anova: Analysis of variance

Description Usage Arguments Value Examples

Description

Conducts analysis of variance (ANOVA)

Usage

1
tidy_anova(data, model, type = NULL, robust = FALSE, ...)

Arguments

data

Data frame with variables of interest to model

model

Specification of the theorized model

type

Not yet impelmented

robust

Logical not yet implemented

...

Other args passed to aov/lm

Value

List with fit and coef elements.

Examples

1
2
3
4
5
6
7
8
9
## anova
polcom %>%
  dplyr::mutate(sex = ifelse(sex == 1, "Male", "Female"),
  vote_choice = dplyr::case_when(
    vote_2016_choice == 1 ~ "Clinton",
    vote_2016_choice == 2 ~ "Trump",
    TRUE ~ "Other")) %>%
  tidy_anova(pp_ideology ~ sex * vote_choice) %>%
  tidy_summary()

mkearney/tidyacademic documentation built on May 14, 2019, 6:12 a.m.