tidy_ttest: T-test

Description Usage Arguments Value Examples

Description

Conducts a t-test, comparing two groups along single variable

Usage

1
tidy_ttest(data, model)

Arguments

data

Data frame with grouping and variable of interest.

model

The model specified as the measured variable predicted by group.

Value

A tidy summary with fit and coef tibbles

Examples

1
2
3
4
## compre pp_ideology b/w those who follow and don't follow trump
polcom %>%
  tidy_ttest(pp_ideology ~ follow_trump) %>%
  tidy_summary()

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