Description Usage Arguments Value Author(s) References Examples
Provides a simple demonstration of how the posterior distribution improves as increasing amounts of data become available. A Binomial variable with a known parametric probability is sampled, and as increasing numbers of samples become available the posterior distribution is re-evaluated and plotted.
1 2 |
p |
the “real” binomial probability; if a number samller than 0 or one lager than 1 isentered the function will choose an arbitrary probability |
N |
the number of observations to accumulate |
prior |
one of: "uniform", "near_0.5", "not_near_0.5", "near_0", or "near_1". |
none returned; the function is run for the plot it produces.
Robert van Hulst
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
1 | B1propSim(p = 0.44, prior = "near_0.5")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.