plot.edr: Basic plot of an edr object

Description Usage Arguments Value Author(s) See Also Examples

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

1
2
## S3 method for class '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.

Author(s)

Benoît Liquet, <benoit.liquet@isped.u-bordeaux2.fr> and Jérôme Saracco <jerome.saracco@math.u-bordeaux1.fr>

See Also

summary.edr

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## 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)

edrGraphicalTools documentation built on May 2, 2019, 3:44 a.m.