Skip to contents

Title

Usage

bernoulli_trial(outcome_set = c(0, 1), prob = 0.25)

Arguments

outcome_set

set of two outcomes where second is considered a 'success'

prob

probability of 'success', default is .25

Value

probability and outcome as 0 and 1

Examples

bernoulli_trial(.5)
#>   outcome prob
#> 1     0.5 0.75
#> 2     0.5 0.25
bernoulli_trial(.6)
#>   outcome prob
#> 1     0.6 0.75
#> 2     0.6 0.25