pdTens                 package:mgcv                 R Documentation

_F_u_n_c_t_i_o_n_s _i_m_p_l_e_m_e_n_t_i_n_g _a _p_d_M_a_t _c_l_a_s_s _f_o_r _t_e_n_s_o_r _p_r_o_d_u_c_t _s_m_o_o_t_h_s

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

     This set of functions implements an 'nlme' library 'pdMat' class
     to allow tensor product smooths to be estimated by 'lme' as called
     by 'gamm'. Tensor product smooths have a penalty matrix made up of
     a weighted sum of penalty matrices, where the weights are the
     smoothing  parameters. In the mixed model formulation the penalty
     matrix is the inverse of the covariance matrix for  the random
     effects of a term, and the smoothing parameters (times a half) are
     variance parameters to be estimated.  It's not  possible to
     transform the problem to make the required random effects
     covariance matrix look like one of the standard  'pdMat' classes:
     hence the need for the 'pdTens' class. A 'notLog' parameterization
     ensures that  the parameters are positive. 

     These functions would not normally be called directly.

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

     pdTens(value = numeric(0), form = NULL, 
            nam = NULL, data = sys.frame(sys.parent()))

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

   value: Initialization values for parameters. Not normally used.

    form: A one sided formula specifying the random effects structure.
          The formula should have an attribute 'S' which is a list of
          the penalty matrices the weighted sum of which gives the
          inverse of the  covariance matrix for these random effects.

     nam: a names argument, not normally used with this class.

    data: data frame in which to evaluate formula.

_D_e_t_a_i_l_s:

     This appears to be the minimum set of functions required to
     implement a new 'pdMat' class. 

     Note that while the 'pdFactor' and 'pdMatrix' functions return the
     inverse of the scaled random  effect covariance matrix or its
     factor, the 'pdConstruct' function is initialised with estimates
     of the  scaled covariance matrix itself.

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

     A class 'pdTens' object, or it's coefficients or the matrix it
     represents or the factor of that matrix.

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

     Simon N. Wood simon@stats.gla.ac.uk

_R_e_f_e_r_e_n_c_e_s:

     Pinheiro J.C. and Bates, D.M. (2000) Mixed effects Models in S and
     S-PLUS. Springer

     The 'nlme' source code.

     <URL: http://www.stats.gla.ac.uk/~simon/>

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

     'te'  'gamm'

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

     # see gamm

