March 2018
Beginner to intermediate
570 pages
13h 42m
English
For our last example in the chapter, we will be performing a sort-of Bayesian analogue to the two-sample t-test using the same data and problem from the corresponding example in the previous chapter-testing whether the means of the gas mileage for automatic and manual cars are significantly different.
As before, let's specify the model using non-informative flat priors, as shown in the following code:
the.model <- " model { # each group will have a separate mu # and standard deviation for(j in 1:2){ mu[j] ~ dunif(0, 60) # prior stddev[j] ~ ...