Learn R Programming

evidence (version 0.8.10)

B1Nsir: 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.

References

van Hulst, R. 2018. Evaluating Scientific Evidence. ms.

See Also

B1Nmean

Examples

Run this code
# NOT RUN {
data(darwin)
B1Nsir(darwin$difference)
# }

Run the code above in your browser using DataLab