B1Nsir function

Bayesian analysis of a Normal sample using a SIR prior.

Bayesian analysis of a Normal sample using a SIR prior.

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.

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

Returns

none returned; the function produces a plot of the posterior distribution and prints some statistics.

References

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

Author(s)

Robert van Hulst

See Also

B1Nmean

Examples

data(darwin) B1Nsir(darwin$difference)
  • Maintainer: Robert van Hulst
  • License: GPL (>= 2)
  • Last published: 2018-05-15

Useful links