hypothesize: Declare a null hypothesis

Description Usage Arguments Value Examples

View source: R/hypothesize.R

Description

Declare a null hypothesis

Usage

1
hypothesize(x, null, ...)

Arguments

x

A data frame that can be coerced into a tibble.

null

The null hypothesis. Options include "independence" and "point".

...

Arguments passed to downstream functions.

Value

A tibble containing the response (and explanatory, if specified) variable data with parameter information stored as well.

Examples

1
2
3
4
5
6
7
# Permutation test similar to ANOVA
mtcars %>%
  dplyr::mutate(cyl = factor(cyl)) %>%
  specify(mpg ~ cyl) %>%
  hypothesize(null = "independence") %>%
  generate(reps = 100, type = "permute") %>%
  calculate(stat = "F")

andrewpbray/infer documentation built on Aug. 29, 2019, 5:57 a.m.