binom_bayes | R Documentation |
Bayesian analysis of one-sample binomial data using conjugate beta priors
binom_bayes(
x,
n,
a = 1,
b = 1,
level = 0.95,
null,
plot = FALSE,
add = FALSE,
xlab = "p",
ylab = "Posterior density",
col = "blue",
...
)
x |
Number of "successes" |
n |
Number of trials |
a |
'alpha' parameter for beta prior. Default: uniform prior |
b |
'beta' parameter for beta prior. Default: uniform prior |
level |
For posterior interval; .95 for a 95% credible interval |
null |
Point null to evaluate as a kind of hypothesis test |
plot |
Draw a plot? Default: false |
add |
Add to existing plot? Default: false |
xlab |
xlab for plot |
ylab |
ylab for plot |
col |
color of density line for plot |
... |
Additional arguments to |
binom_bayes(10, 16)
binom_bayes(0, 21, plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.