ssrnd2NN | R Documentation |
Calculates the Near Neighborhood Estimator in a multi-dimensional SSR model
ssrnd2NN(X, Y, k, weighted=FALSE)
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. |
mdl |
data list with the relevant model data. |
Dr. Lars Metzner
Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.