

pdMatrix(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', repre-
          senting a positive definite matrix.

    fact: an optional logical value. If `TRUE', a square-
          root factor of the positive-definite matrix repre-
          sented 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 rep-
     resented 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_:

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

