Learn R Programming

sisireg (version 1.2.1)

ssrnd2_predict: Prediction function for the multi-dimensional SSR model - reworked

Description

Calculates the prediction for a given multi-dimensional SSR model

Usage

ssrnd2_predict(mdl, xx)

Value

z

array with predictions.

Arguments

mdl

data list with previously calculated model.

xx

matrix with coordinates for prediction.

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 <- ssrnd2(X, Y)
yy <- ssrnd2_predict(mdl, X)
# }

Run the code above in your browser using DataLab