Bayesian analysis of one sample from a Normal distribution with imprecise priors.
Bayesian analysis of one sample from a Normal distribution with imprecise priors.
This function performs a standard Bayesian analysis of a single sample of a population presumably following a Normal distribution. Imprecise priors for the mean and the standard deviation are used.
B1Nmean(x, plotit =TRUE, hists =FALSE, pdf =FALSE)
Arguments
x: a vector of sample values
plotit: should the function produce plots? Defaults to TRUE.
hists: should histograms of the posterior distribution for the data with twenty posterior predictive histograms also be plotted? Defaults to FALSE.
pdf: should the histograms be saved as a pdf-file? Defaults to FALSE.
Returns
none produced: text and graphical output are produced
References
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
Author(s)
Robert van Hulst
See Also
B1Nsir
Examples
## Not run:data(Fat)B1Nmean(Fat$Height)## End(Not run)