smooth.construct.tensor.smooth.spec package:mgcv R Documentation _T_e_n_s_o_r _p_r_o_d_u_c_t _s_m_o_o_t_h_i_n_g _c_o_n_s_t_r_u_c_t_o_r _D_e_s_c_r_i_p_t_i_o_n: A special 'smooth.construct' method function for creating tensor product smooths from any combination of single penalty marginal smooths. _U_s_a_g_e: ## S3 method for class 'tensor.smooth.spec': smooth.construct(object, data, knots) _A_r_g_u_m_e_n_t_s: object: a smooth specification object of class 'tensor.smooth.spec', usually generated by a term like 'te(x,z)' in a 'gam' model formula data: a list containing just the data (including any 'by' variable) required by this term, with names corresponding to 'object$term' (and 'object$by'). The 'by' variable is the last element. knots: a list containing any knots supplied for basis setup - in same order and with same names as 'data'. Can be 'NULL'. See details for further information. _D_e_t_a_i_l_s: Tensor product smooths are smooths of several variables which allow the degree of smoothing to be different with respect to different variables. They are useful as smooth interaction terms, as they are invariant to linear rescaling of the covariates, which means, for example, that they are insensitive to the measurement units of the different covariates. They are also useful whenever isotropic smoothing is inappropriate. See 'te', 'smooth.construct' and 'smooth.terms'. _V_a_l_u_e: An object of class '"tensor.smooth"'. See 'smooth.construct', for the elements that this object will contain. _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: Wood, S.N. (2006) Low rank scale invariant tensor product smooths for generalized additive mixed models. Biometrics 62(4):1025-1036 _S_e_e _A_l_s_o: 'cSplineDes' _E_x_a_m_p_l_e_s: ## see ?gam