B1Nsir {evidence} | R Documentation |
Bayesian analysis of a Normal sample using a SIR prior.
Description
This function performs a standard Bayesian analysis of a single sample of a population assumed to follow a Normal distribution. A Standard Improper Reference prior is assumed.
Usage
B1Nsir(x, r = 10000, alpha = 0.05)
Arguments
x |
a vector of sample values |
r |
the number of samples to be taken from the posterior distribution (defaults to 10000) |
alpha |
1 - level of credibility, so that for alpha = 0.05 (the default) credible intervals will have 95% credibility |
Value
none returned; the function produces a plot of the posterior distribution and prints some statistics.
Author(s)
Robert van Hulst
References
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
See Also
Examples
data(darwin)
B1Nsir(darwin$difference)
[Package evidence version 0.8.10 Index]