line                   package:boa                   R Documentation

_B_U_G_S _L_i_n_e _E_x_a_m_p_l_e

_D_e_s_c_r_i_p_t_i_o_n:

     The Line example involves a linear regression analysis of the data
     points (1,1), (2,3), (3,3), (4,3), and (5,5).  The proposed
     Bayesian model is

                         y[i] ~ N(mu[i], tau)


              mu[i] = alpha + beta * (x[i] - mean(x[]))

     with the following priors:

                         alpha ~ N(0, 0.0001)


                         beta ~ N(0, 0.0001)


                      tau ~ Gamma(0.001, 0.001)

     Two parallel chains from the MCMC sampler were generated and the
     output saved in the  S data frames line1 and line2.

_U_s_a_g_e:

     data(line)

_F_o_r_m_a_t:

     The data frames line1 and line2 each containing 200 observations.

_R_e_f_e_r_e_n_c_e_s:

     Spiegelhalter, D., Thomas, A. and Best, N., (2000). WinBugs
     Version 1.4 User Manual.

