gModel                package:gRbase                R Documentation

_C_l_a_s_s "_g_M_o_d_e_l" - _g_r_a_p_h_i_c_a_l _m_o_d_e_l_s

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

     The general class 'gModel' contains a formula object and a
     'gmData' object. Implementations of different specific graphical
     model classes can inherit from this class and provide methods for
     parsing the formula. This is illustrated in the implementation of
     a class for hierarchical log-linear models, 'hllm'.

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

     gModel(formula, gmData)

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

 formula: an object of class 'formula'.

  gmData: an object of class 'gmData'.

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

     'gModel' creates an object of class 'gModel' with the two
     components 'formula' and 'gmData'. These components can be
     retrieved or replaced using the accessor functions of the same
     names. Also, a 'gModel' object may be manipulated using the
     'dynamicGraph' interface.

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

     Sren Hjsgaard, sorenh@agrsci.dk, 
      Claus Dethlefsen, cld@rn.dk

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

     'gmData', 'gRfit', 'hllm'.

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

     data(rats)
     rats <- as.gmData(rats)

     m1 <- gModel(~.^. , rats)
     m1.form <- formula(m1)
     m1.data <- gmData(m1)
     observations(gmData(m1)) <- observations(rats)[1:10,]

