Skip to contents

Title

Usage

bernoulli_trial(prob = 0.25)

Arguments

prob

Examples

bernoulli_trial()
#> # A tibble: 2 × 2
#>   outcome  prob
#>     <int> <dbl>
#> 1       0  0.75
#> 2       1  0.25
bernoulli_trial(.666)
#> # A tibble: 2 × 2
#>   outcome  prob
#>     <int> <dbl>
#> 1       0 0.334
#> 2       1 0.666