[.pdMat                 package:nlme                 R Documentation

_S_u_b_s_c_r_i_p_t _a _p_d_M_a_t _O_b_j_e_c_t

_D_e_s_c_r_i_p_t_i_o_n:

     This method function extracts sub-matrices from the
     positive-definite matrix represented by 'x'.

_U_s_a_g_e:

     x[i, j, drop]
     x[i, j] <- value

_A_r_g_u_m_e_n_t_s:

       x: an object inheriting from class 'pdMat' representing a
          positive-definite matrix.

    i, j: optional subscripts applying respectively to the rows and
          columns of the positive-definite matrix represented by
          'object'. When 'i' ('j') is omitted, all rows (columns) are
          extracted.

    drop: a logical value. If 'TRUE', single rows or columns are
          converted to vectors. If 'FALSE' the returned value retains
          its matrix representation.

   value: a vector, or matrix, with the replacement values for the
          relevant piece of the matrix represented by 'x'.

_V_a_l_u_e:

     if 'i' and 'j' are identical, the returned value will be 'pdMat'
     object with the same class as 'x'. Otherwise, the returned value
     will be a matrix. In the case a single row (or column) is
     selected, the returned value may be converted to a vector,
     according to the rules above.

_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:

     '[', 'pdMat'

_E_x_a_m_p_l_e_s:

     pd1 <- pdSymm(diag(3))
     pd1[1, , drop = FALSE]
     pd1[1:2, 1:2] <- 3 * diag(2)

