ssrnd2NN {sisireg} | R Documentation |
Near Neighborhood Estimator for Multi-dimensional SSR model
Description
Calculates the Near Neighborhood Estimator in a multi-dimensional SSR model
Usage
ssrnd2NN(X, Y, k, weighted=FALSE)
Arguments
X |
matrix with n-dimensional coordinates. |
Y |
array with observations. |
k |
optional: maxumum run length for the model. |
weighted |
optional: flag if a weighted mean should be used. |
Value
mdl |
data list with the relevant model data. |
Author(s)
Dr. Lars Metzner
References
Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.
Examples
# generate data
set.seed(1234)
x <- rnorm(400)
y <- rnorm(400)
z <- rnorm(400) + atan2(x, y)
X <- matrix(cbind(x, y), ncol = 2)
Y <- as.double(z)
# Training
mdl <- ssrnd2NN(X, Y, 10)
[Package sisireg version 1.2.1 Index]