smoothCon                package:mgcv                R Documentation

_P_r_e_d_i_c_t_i_o_n/_C_o_n_s_t_r_u_c_t_i_o_n _w_r_a_p_p_e_r _f_u_n_c_t_i_o_n_s _f_o_r _G_A_M _s_m_o_o_t_h _t_e_r_m_s

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

     Wrapper functions for construction of and prediction from smooth
     terms in a GAM. The purpose of the wrappers is to allow
     user-transparant re-parameterization of smooth terms, in order to
     allow identifiability constraints to be absorbed into the
     parameterization of each term, if required.

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

     smoothCon(object,data,knots,absorb.cons=FALSE)
     PredictMat(object,data)

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

  object: is a smooth specification object or a smooth object.

    data: A data frame containing the values of the (named) covariates
          at which the smooth term is to be  evaluated.

   knots: An optional data frame supplying any knot locations to be
          supplied for basis construction.

absorb.cons: Set to 'TRUE' in order to have identifiability constraints
          absorbed into the basis.

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

     These wrapper functions exist to allow smooths specified using
     'smooth.construct' and 'Predict.matrix' method functions to be
     re-parameterized so that identifiability constraints are no longer
     required in fitting. This is done in a user transparent manner,
     but is typically of no importance in use of GAMs. 

     The parameterization used by 'gam' can be controlled via
     'gam.control'.

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

     From 'smoothCon' a 'smooth' object returned by the appropriate
     'smooth.construct' method function. If constraints are to be
     absorbed then the object will have an attributes '"qrc"' and
     '"nCons"', the qr decomposition of the constraint matrix (returned
     by 'qr') and the number of constraints, respectively: these are 
     used in the re-parameterization. 

     For 'predictMat' a matrix which will map the parameters associated
     with the smooth to the vector of values of the smooth evaluated at
     the covariate values given in 'object'.

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

     Simon N. Wood simon.wood@r-project.org

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

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

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

     'gam.control', 'smooth.construct', 'Predict.matrix'

