makeNewS: Create a matrix of bisquare bases for a set of locations.

View source: R/bisquare_knots.R

makeNewSR Documentation

Create a matrix of bisquare bases for a set of locations.

Description

Create a matrix of bisquare bases for a set of locations. Used internally in BSTFA and BSTFAfull.

Usage

makeNewS(
  coords,
  n.locations,
  knot.levels = 2,
  max.knot.dist = mean(dist(coords)),
  x = NULL,
  premade.knots = NULL,
  plot.knots = FALSE,
  regions = FALSE
)

Arguments

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 mean(dist(coords)).

x

Optional matrix of covariates to include in the model.

premade.knots

Optional list of length knot.levels each list item containing pre-chosen knots for that level.

plot.knots

Logical scalar indicating whether or not to plot the knots. Default is FALSE.

regions

Logical scalar indicating if the space should be divided into multiresolution regions. Default is FALSE.

Value

A matrix containing all the multiresolution bisquare bases evaluated at the input coordinates.

Author(s)

Candace Berrett and Adam Simpson


BSTFA documentation built on Aug. 28, 2025, 9:09 a.m.