ssr_predict {sisireg} | R Documentation |
SSR model Prediction
Description
Calculates the prediction for a given SSR model.
Usage
ssr_predict(df, xx)
Arguments
df |
dataframe containing two series with x- und y-values. |
xx |
array containung locations for predictions. |
Value
yy |
array containung the predicted values. |
Author(s)
Dr. Lars Metzner
References
Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.
Examples
set.seed(1234)
df <- data.frame(x=runif(500, min=-1, max=1)*pi)
df$y <- sin(df$x)*20 + rnorm(nrow(df), mean=0, sd=10)
plot(df, xlim=c(-4, 4))
dfl1 <- ssr(df)
lines(dfl1)
xx <- c(-4, -1, 0, 1, 4)
yy <- ssr_predict(dfl1, xx)
points(xx,yy, pch='+', col='red', cex=2)
[Package sisireg version 1.1.1 Index]