lin and
sm terms, because they allow a
decomposition into (linear and smooth) marginal trends
and (linear-linear, linear-smooth/"varying coefficients",
and smooth-smooth) interactions. This decomposition
usually makes no sense for spatial data.srf(coords, K = min(50, sum(nd)/4), rankZ = 0.999,
centerBase = TRUE, baseType = c("B", "thinPlate"),
decomposition = c("ortho", "MM", "asIs"), tol = 1e-10)data.frame with two columns
containing the coordinatesbaseType="B"
you can specify a vector giving the number of marginal
basis functions in each direction."B", i.e. a tensor
product basis based on marginal cubic B-splines with
ridge penalty (i.e. penalizing deviations from the
constant). Set to "thinPlate" if cubic thin plate
splines are desired, see note below"ortho"), or use the mixed model
reparameterization for non-srf() expects coords to be a
data.frame within the larger data.frame
supplied to spikeSlabGAM in its data
argument, i.e. coords is considered a
two-dimensional covariate. If baseType is 'thinPlate', knot locations
for the thin plate spline basis are chosen via a
space-filling algorithm (i.e. medoids returned by
clara) as suggested in
Ruppert/Wand/Carroll, ch. 13.5. Since the thin plate
penalty term penalizes deviations from a linear trend, it
is recommended to add marginal linear trends and their
interaction to the model if baseType="thinPlate"
to improve the fit.