formula.pdBlocked            package:nlme            R Documentation

_E_x_t_r_a_c_t _p_d_B_l_o_c_k_e_d _F_o_r_m_u_l_a

_D_e_s_c_r_i_p_t_i_o_n:

     The 'formula' attributes of the 'pdMat' elements of 'x' are
     extracted and returned as a list, in case 'asList=TRUE', or
     converted to a single one-sided formula when 'asList=FALSE'. If
     the 'pdMat' elements do not have a 'formula' attribute, a 'NULL'
     value is returned.

_U_s_a_g_e:

     ## S3 method for class 'pdBlocked':
     formula(x, asList, ...)

_A_r_g_u_m_e_n_t_s:

       x: an object inheriting from class 'pdBlocked', representing a
          positive definite block diagonal matrix.

  asList: an optional logical value. If 'TRUE', a list with the
          formulas for the individual block diagonal elements of 'x' is
          returned; else, if 'FALSE', a one-sided formula combining all
          individual formulas is returned. Defaults to 'FALSE'.

     ...: some methods for this generic require additional arguments. 
          None are used in this method.

_V_a_l_u_e:

     a list of one-sided formulas, or a single one-sided formula, or
     'NULL'.

_A_u_t_h_o_r(_s):

     Jose Pinheiro Jose.Pinheiro@pharma.novartis.com and Douglas Bates
     bates@stat.wisc.edu

_S_e_e _A_l_s_o:

     'pdBlocked', 'pdMat'

_E_x_a_m_p_l_e_s:

     pd1 <- pdBlocked(list(~ age, ~ Sex - 1))
     formula(pd1)
     formula(pd1, asList = TRUE)

