powered by
Computes a Bayesian test of the hypothesis that a normal mean is less than or equal to a specified value
mnormt.onesided(m0,normpar,data)
value of the normal mean to be tested
vector of mean and standard deviation of the normal prior distribution
vector of sample mean, sample size, and known value of the population standard deviation
Bayes factor in support of the null hypothesis
prior odds of the null hypothesis
posterior odds of the null hypothesis
posterior probability of the null hypothesis
# NOT RUN { y=c(182,172,173,176,176,180,173,174,179,175) pop.s=3 data=c(mean(y),length(data),pop.s) m0=175 normpar=c(170,1000) mnormt.onesided(m0,normpar,data) # }
Run the code above in your browser using DataLab