Description Usage Arguments Value Examples
View source: R/sim_bern_mean.R
Simulate data from a Bernoulli with some probability of success and return the estimated probability.
1 | sim_bern_mean(n, prob = 0.5)
|
n |
the sample size |
prob |
true probability of success |
a tibble with the estimated probability of success
1 2 | sim_bern_mean(30)
sim_bern_mean(n = 30, prob = .75)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.