powered by
Bayesian test that a normal mean is equal to a specified value using a normal prior
mnormt.twosided(m0, prob, t, data)
value of the mean to be tested
prior probability of the hypothesis
vector of values of the prior standard deviation under the alternative hypothesis
vector containing the sample mean, the sample size, and the known value of the population standard deviation
vector of values of the Bayes factor in support of the null hypothesis
vector of posterior probabilities of the null hypothesis
# NOT RUN { m0=170 prob=.5 tau=c(.5,1,2,4,8) samplesize=10 samplemean=176 popsd=3 data=c(samplemean,samplesize,popsd) mnormt.twosided(m0,prob,tau,data) # }
Run the code above in your browser using DataLab