EVOLUTION-MANAGER
Edit File: smooth.construct.t2.smooth.spec.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Tensor product smoothing constructor</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for smooth.construct.t2.smooth.spec {mgcv}"><tr><td>smooth.construct.t2.smooth.spec {mgcv}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Tensor product smoothing constructor</h2> <h3>Description</h3> <p>A special <code>smooth.construct</code> method function for creating tensor product smooths from any combination of single penalty marginal smooths, using the construction of Wood, Scheipl and Faraway (2013). </p> <h3>Usage</h3> <pre> ## S3 method for class 't2.smooth.spec' smooth.construct(object, data, knots) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>object</code></td> <td> <p>a smooth specification object of class <code>t2.smooth.spec</code>, usually generated by a term like <code>t2(x,z)</code> in a <code><a href="gam.html">gam</a></code> model formula</p> </td></tr> <tr valign="top"><td><code>data</code></td> <td> <p>a list containing just the data (including any <code>by</code> variable) required by this term, with names corresponding to <code>object$term</code> (and <code>object$by</code>). The <code>by</code> variable is the last element.</p> </td></tr> <tr valign="top"><td><code>knots</code></td> <td> <p>a list containing any knots supplied for basis setup — in same order and with same names as <code>data</code>. Can be <code>NULL</code>. See details for further information.</p> </td></tr> </table> <h3>Details</h3> <p>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 <code><a href="t2.html">t2</a></code>, <code><a href="te.html">te</a></code>, <code><a href="smooth.construct.html">smooth.construct</a></code> and <code><a href="smooth.terms.html">smooth.terms</a></code>. The construction employed here produces tensor smooths for which the smoothing penalties are non-overlapping portions of the identity matrix. This makes their estimation by mixed modelling software rather easy. </p> <h3>Value</h3> <p> An object of class <code>"t2.smooth"</code>. </p> <h3>Author(s)</h3> <p> Simon N. Wood <a href="mailto:simon.wood@r-project.org">simon.wood@r-project.org</a></p> <h3>References</h3> <p>Wood, S.N., F. Scheipl and J.J. Faraway (2013) Straightforward intermediate rank tensor product smoothing in mixed models. Statistics and Computing 23: 341-360. </p> <h3>See Also</h3> <p><code><a href="t2.html">t2</a></code></p> <h3>Examples</h3> <pre> ## see ?t2 </pre> <hr /><div style="text-align: center;">[Package <em>mgcv</em> version 1.8-28 <a href="00Index.html">Index</a>]</div> </body></html>