Learn R Programming

psvmSDR (version 2.0.1)

plot.npsdr: Scatter plot with sufficient predictors from npsdr() function

Description

Scatter plot with sufficient predictors from npsdr() function

Usage

# S3 method for npsdr
plot(x, ..., d = 1, lowess = TRUE)

Value

A scatter plot with sufficient predictors.

Arguments

x

object from the function npsdr()

...

Additional arguments to be passed to generic plot function.

d

number of sufficient predictors. Default is 1.

lowess

draw a lowess curve. Default is TRUE.

Author

Jungmin Shin, jungminshin@korea.ac.kr, Seung Jun Shin, sjshin@korea.ac.kr, Andreas Artemiou artemiou@uol.ac.cy

See Also

npsdr_x, npsdr

Examples

Run this code
# \donttest{
set.seed(1)
n <- 200;
p <- 5;
x <- matrix(rnorm(n*p, 0, 2), n, p)
y <-  x[,1]/(0.5 + (x[,2] + 1)^2) + 0.2*rnorm(n)
obj_kernel <- npsdr(x, y, plot=FALSE)
plot(obj_kernel)
# }

Run the code above in your browser using DataLab