nb2WB                 package:spdep                 R Documentation

_O_u_t_p_u_t _s_p_a_t_i_a_l _w_e_i_g_h_t_s _f_o_r _W_i_n_B_U_G_S

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

     Output spatial weights for WinBUGS

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

     nb2WB(nb)
     listw2WB(listw) 

_A_r_g_u_m_e_n_t_s:

      nb: an object of class 'nb'

   listw: a 'listw' object from for example 'nb2listw'

_V_a_l_u_e:

     A list suitable for convering using 'dput' for WinBUGS

_A_u_t_h_o_r(_s):

     Virgilio Gomez-Rubio

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

     http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/geobugs12manual.pdf

_S_e_e _A_l_s_o:

     'dput'

_E_x_a_m_p_l_e_s:

     example(columbus)
     x <- nb2WB(col.gal.nb)
     dput(x, control=NULL)
     x <- listw2WB(nb2listw(col.gal.nb))
     dput(x, control=NULL)

