View source: R/bisquare_knots.R
makeNewS | R Documentation |
Create a matrix of bisquare bases for a set of locations. Used internally in BSTFA
and BSTFAfull
.
makeNewS(
coords,
n.locations,
knot.levels = 2,
max.knot.dist = mean(dist(coords)),
x = NULL,
premade.knots = NULL,
plot.knots = FALSE,
regions = FALSE
)
coords |
Matrix of coordinates for locations of interest. |
n.locations |
Number of observed locations. |
knot.levels |
Number of levels for the knots. Default is 2. |
max.knot.dist |
Maximum distance between an observation and a knot. Default is |
x |
Optional matrix of covariates to include in the model. |
premade.knots |
Optional list of length |
plot.knots |
Logical scalar indicating whether or not to plot the knots. Default is |
regions |
Logical scalar indicating if the space should be divided into multiresolution regions. Default is |
A matrix containing all the multiresolution bisquare bases evaluated at the input coordinates.
Candace Berrett and Adam Simpson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.