Description Usage Arguments Format Value Examples
Generation is done based on specify()
and (if needed) hypothesize()
inputs.
1 2 3 | generate(x, reps = 1, type = NULL, ...)
GENERATION_TYPES
|
x |
A data frame that can be coerced into a tibble. |
reps |
The number of resamples to generate. |
type |
Currently either |
... |
Currently ignored. |
An object of class character
of length 3.
A tibble containing rep
generated datasets, indicated by the
replicate
column.
1 2 3 4 5 6 7 8 9 | # Different `type` options
GENERATION_TYPES
# Permutation test for two binary variables
mtcars %>%
dplyr::mutate(am = factor(am), vs = factor(vs)) %>%
specify(am ~ vs, success = "1") %>%
hypothesize(null = "independence") %>%
generate(reps = 100, type = "permute")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.