Description Usage Arguments Details Author(s)
Define a bivariate spline using tensor products or thin plate splines.
1 2 3 4 |
data |
sss object. Data of class sss generated by as.sss or create.sss. |
penalty |
character. Type of spline to use and penalty to define. One of cs or ps for cubic splines based on tensor products, tps for thin plate splines or none. cs define the penalty based on roughness matrices of natural cubic splines while ps define the penalty based on differences of order |
is.X |
character. Model for the spatial surface. One of tensor, tps or none. Only required if |
intercept |
logical. Define whether to include an intercept or not. Default to |
ps.order |
integer. Order for differences if |
aniso.angle |
numeric. Angle for geometric anisotropy. |
aniso.ratio |
numeric. Ratio between [0,1] for geometric anisotropy. |
env |
environment. Where to search for data if |
... |
additional arguments. Not required. |
Note that is.X
is only needed if penalty="none"
. By defining is.X="none"
it only define an intercept (if intercept=TRUE
), is.X="tps"
defines an intercept, coordinate 1, and coordinate 2 as covariates, while is.X="tensor"
defines also the interaction coordinate 1*coordinate 2. See scp.
Mario A. Martinez Araya, r@marioma.me
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.