sim_bern_mean: sim_bern_mean

Description Usage Arguments Value Examples

View source: R/sim_bern_mean.R

Description

Simulate data from a Bernoulli with some probability of success and return the estimated probability.

Usage

1
sim_bern_mean(n, prob = 0.5)

Arguments

n

the sample size

prob

true probability of success

Value

a tibble with the estimated probability of success

Examples

1
2
sim_bern_mean(30)
sim_bern_mean(n = 30, prob = .75)

jeff-goldsmith/example.package documentation built on Dec. 7, 2020, 8:52 a.m.