edrGraphicalTools (version 2.2)

plot.edr: Basic plot of an edr object

Description

For an edr object with attributes K <= 2, this function plots the response y versus each new estimate indice with an estimation of the link function. For K = 2, a 3D plot of y versus the two estimate indices is represented. A smooth estimate of the link function is also represented. For K > 2, the pairs function is used.

Usage

# S3 method for edr
plot(x, …)

Arguments

x

The name of an object of class edr.

Some methods for this generic require additional arguments. None are used in this method.

Value

Returns graphs.

See Also

summary.edr

Examples

Run this code
# NOT RUN {
## simulated example 
set.seed(10)
n <- 500
beta1 <- c(1,1,rep(0,8))
beta2 <- c(0,0,1,1,rep(0,6))
X <- rmvnorm(n,sigma=diag(1,10))
eps <- rnorm(n)
Y <- (X%*%beta1)**2+(X%*%beta2)**2+eps
edr2 <- edr(Y,X,H=2,K=2,method="SIR-II")
#plot(edr2)
## edr4 <- edr(Y,X,H=2,K=4,method="SIR-II")
## plot(edr4)


# }

Run the code above in your browser using DataLab