Takes a numeric vector and will return the ecdf probability.
Arguments
- .data
The data being passed that will be augmented by the function.
- .value
This is passed
rlang::enquo()
to capture the vectors you want to augment.- .names
The default is "auto"
Details
Takes a numeric vector and will return the ecdf probability of that vector. This function is intended to be used on its own in order to add columns to a tibble.
See also
Other Augment Function:
bootstrap_density_augment()
,
bootstrap_q_augment()
Other Bootstrap:
bootstrap_density_augment()
,
bootstrap_p_vec()
,
bootstrap_q_augment()
,
bootstrap_q_vec()
,
bootstrap_stat_plot()
,
bootstrap_unnest_tbl()
,
tidy_bootstrap()
Examples
x <- mtcars$mpg
tidy_bootstrap(x) |>
bootstrap_unnest_tbl() |>
bootstrap_p_augment(y)
#> # A tibble: 50,000 × 3
#> sim_number y p
#> <fct> <dbl> <dbl>
#> 1 1 21.4 0.687
#> 2 1 21.5 0.716
#> 3 1 18.7 0.467
#> 4 1 30.4 0.936
#> 5 1 13.3 0.0944
#> 6 1 21.5 0.716
#> 7 1 19.2 0.529
#> 8 1 19.2 0.529
#> 9 1 21.4 0.687
#> 10 1 21.4 0.687
#> # ℹ 49,990 more rows