pdMatrix                package:nlme                R Documentation

_E_x_t_r_a_c_t _M_a_t_r_i_x _o_r _S_q_u_a_r_e-_R_o_o_t _F_a_c_t_o_r _f_r_o_m _a _p_d_M_a_t _O_b_j_e_c_t

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

     The positive-definite matrix represented by `object', or a
     square-root factor of it is obtained. Letting S denote a
     positive-definite matrix, a square-root factor of S is any square
     matrix L such that S = L'L. This function extracts S or L.

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

     pdMatrix(object, fact, ...)

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

  object: an object inheriting from class `pdMat', representing a
          positive definite matrix.

    fact: an optional logical value. If `TRUE', a square-root factor of
          the positive-definite matrix represented by `object' is
          returned; else, if `FALSE', the positive-definite matrix is
          returned. Defaults to `FALSE'.

     ...: some methods for the generic function may require additional
          arguments.

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

     if `fact' is `FALSE' the positive-definite matrix represented by
     `object' is returned; else a square-root of the positive-definite
     matrix is returned.

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

     Jose Pinheiro and Douglas Bates

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

     `as.matrix.pdMat', `pdFactor', `corMatrix'

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

     pd1 <- pdSymm(diag(1:4))
     pdMatrix(pd1)

