psplotnd2 {sisireg} | R Documentation |
Partial Sum Plot for the multidimensional coordinates - reworked
Description
plots the partial sum statistic for the general n-dimensional SSR-model
Usage
psplotnd2(koord, dat, mu, text = "Sample", maxint = NULL, resultplot = TRUE, accept = 10)
Arguments
koord |
data frame with coordinates. |
dat |
data frame of observations. |
mu |
list of discrete regression function. |
text |
optional: title for the plot. |
maxint |
optional: upper limit for evaluated subset size. |
resultplot |
optional: switch for creating a plot, default is TRUE. |
accept |
optional: percentage of allowed deviations in number and signs in partial sums statistics to accept a result. |
Value
TRUE if Partial Sum criterion is passed or result is accepted, FALSE otherwise
Author(s)
Dr. Lars Metzner
References
Dr. Lars Metzner (2021) Adäquates Maschinelles Lernen. Independently Published.
Examples
# generate data
set.seed(42)
x_ <- y_ <- seq(-3, 3, length=20)
xy <- expand.grid(x=x_,y=y_)
x <- xy$x
y <- xy$y
z <- rnorm(400) + atan2(x, y)
# coordinates
X <- matrix(cbind(x, y), ncol = 2)
Y <- as.double(z)
# Training
W <- ssrmlp2_train(X, Y, accept=0) # passed: ps=39.04, secs 24.8, 250 Iterationen
Yp <- ssrmlp_predict(X, W)
psplotnd2(W$X, W$Y, W$Yp, 'ssrMLP2', resultplot = TRUE)
[Package sisireg version 1.2.1 Index]