Learn R Programming

sisireg (version 1.2.1)

ssrnd2NN: 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)

Value

mdl

data list with the relevant model data.

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.

Author

Dr. Lars Metzner

References

Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.

Examples

Run this code
# \donttest{
# 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)
# }

Run the code above in your browser using DataLab