B1Nmean: Bayesian analysis of one sample from a Normal distribution with imprecise priors.
Description
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.
Usage
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.
Value
none produced: text and graphical output are produced
References
van Hulst, R. 2018. Evaluating Scientific Evidence. ms.
Examples
Run this code# NOT RUN {
data(Fat)
B1Nmean(Fat$Height)
# }
Run the code above in your browser using DataLab