Description Usage Arguments Details Value References
Generate multiresolution spatial basis functions on a given domain
1 2 |
loc |
matrix of locations (both point observations and quadrature locations) that are to be included in the Cox process model. The columns must be named |
n.1 |
number of basis functions that make up the first (coarsest) resolution |
n.res |
number of resolutions to use |
bw.scale |
multiplier used to set the bandwidths of the basis functions. Bandwidth for the |
res.scale |
relative increase in the number of basis functions to use for each resolution (default is 3) |
xlim |
bounds (in the x dimension) of the region to be spanned by the basis functions (optional) |
ylim |
bounds (in the y dimension) of the region to be spanned by the basis functions (optional) |
Use multiresolution bisquares to generate Cressie-style spatial random effects on a domain defined by bounds xlim
and ylim
(Cressie, 2008). The default is to use three spatial resolutions: coarse, mid, and fine (the number of resolutions is controlled by the parameter n.res
). By default, the coarsest resolution consists of 16 basis functions (controlled by the parameter n.1
) and each successive resolution has three times as many basis functions as the next coarser resolution (controlled by parameter \coseres.scale). Each basis function is a bisquare centered at some point, and the bandwidth of the bases at each resolution is proportional to the smallest distance between bisquare centers at that resolution (so the bandwidth gets smaller as the resolution gets finer, because with more basis functions at fine resolution, they are closer together). The actual value of the bandwidth for a specific resolution is obtained by finding the smallest disance between center points at that resolution, then multiplying that distance by parameter res.scale
. The domain is a rectangle and if the xlim
or ylim
parameters are omitted, the extreme values of loc$x
or loc$y
will be substituted, respectively.
SRE
, the spatial random effect design matrix, with a row for each location and a column for each basis function. The (i,j)
th entry of this matrix is the value of basis function j
at location i
.
Cressie, N., & Johannesson, G. (2008). Fixed rank kriging for very large spatial data sets. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 70(1), 209-226.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.