Learn R Programming

psvmSDR (version 2.0.1)

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

Description

Scatter plot with sufficient predictors from psdr() function

Usage

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

Value

A scatter plot with sufficient predictors.

Arguments

x

object from the function psdr()

...

Additional arguments to be passed to generic plot function.

d

number of sufficient predictors. Default is 1.

lowess

draw a locally weighted scatterplot smoothing 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

psdr_bic, psdr

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 <- psdr(x, y)
plot(obj, d=2, lowess=TRUE)
# }

Run the code above in your browser using DataLab