Description Usage Arguments Value See Also
Uses data to estimate the number and locations of knots for a reduced rank spatial process.
1 2 3 4 |
Y |
the observed data. Should already be on log-scale. |
X |
the design matrix for the large-scale variation (fixed effects). |
coords |
the observed locations. |
R |
the residuals to use to select knots (computed if missing). |
test_set |
the indices of locations to use as the hold-out test set. |
M |
the number of locations to use for a hold-out test set (ignored if |
penalty |
the exponent in the penalty for the objective function of bandwidth selection. The MSE is weighted against the number of knots to this power. |
BWs |
the bandwidths to test. |
num_bw |
if |
bw_int |
if |
slices |
the threshold cut-off values to define interval sets, defined as percentiles. |
num_slice |
if |
slice_int |
if |
vpred |
method to estimate parameters for the validation stage of TKS. |
... |
space for additional arguments. |
A matrix containing a set of locations.
empirical_knots
threshold_knots
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.