B1Nsir: Bayesian analysis of a Normal sample using a SIR prior.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/B1Nsir.R

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

1
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

B1Nmean

Examples

1
2
data(darwin)
B1Nsir(darwin$difference)

evidence documentation built on May 2, 2019, 2:14 p.m.