Learn R Programming

sisireg (version 1.1.2)

psplot3d: Partial Sum Plot for 2-dimensional coordinates

Description

Plots the partial sum statistic for the 3-dimensional SSR model

Usage

psplot3d(koord, z, mu, text = "Sample")

Value

No explicit return value: a plot is generated

Arguments

koord

data frame with coordinates.

z

vector of observations.

mu

vector of discrete regression function.

text

optional: title for the plot.

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(900)
y <- rnorm(900)
xy <- data.frame(x=x, y=y)
z <- rnorm(900) + atan2(x, y)
# Training
df_model <- ssr3d(xy, z, k = 4, fn = 8)
# plot partial sum statistic
psplot3d(xy, z, df_model$mu, 'ssr3d')
# }

Run the code above in your browser using DataLab