Learn R Programming

sisireg (version 1.1.2)

ssrnd_predict: Prediction function for the multi-dimensional SSR model

Description

Calculates the prediction for a given multi-dimensional SSR model

Usage

ssrnd_predict(df_model, xx)

Value

z

list with predictions.

Arguments

df_model

data frame with model coordinates.

xx

data frame 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(300)
y <- rnorm(300)
xy <- data.frame(x=x, y=y)
z <-data.frame(z=rnorm(300) + atan2(x, y))
# Training
df_model <- ssrnd(xy, z)
# Prediction
xx <- c(c(0,1), c(-1,1), c(1,-1))
xx <- matrix(xx, ncol = 2)
yy <- ssrnd_predict(df_model, xx)
# }

Run the code above in your browser using DataLab