# edrGraphicalTools-package {edrGraphicalTools}

Provides graphical tools for dimension reduction methods
Package:
edrGraphicalTools
Version:
2.1

### Description

This package illustrates the articles listed below. It estimates by bootstrap a squared trace correlation criterion which measures the quality of the estimation of the effective dimension reduction (EDR) space. It also contains functions to perform such an estimation when the sample size is smaller than the number of explanatory variables. Methods to select the relevant explanatory variables are also included.

### Details

 Package: edrGraphicalTools Type: Package Version: 2.0 Date: 2013-06-21 License: GPL (>=2.0) LazyLoad: yes

### References

Liquet, B. and Saracco, J. (2012). A graphical tool for selecting the number of slices and the dimension of the model in SIR and SAVE approaches. Computational Statistics, 27(1), 103-125.

Coudret, R., Liquet, B. and Saracco, J. Comparison of sliced inverse regression approaches for underdetermined cases. Journal de la Socit Franaise de Statistique, in press.

`criterionRkh`, `edr`, `plot.criterionRkh`, `edrSelec`, `edrUnderdet`

### Examples

```## Sample generation
set.seed(10)
n <- 500
p <- 10
beta <- c(1,rep(0,p-1))
X <- rmvnorm(n,sigma=diag(p))
eps <- rnorm(n)
Y <- (X%*%beta)**3+eps*((X%*%beta)**2)

## Determining optimal values for H and K
grid.H <- c(2,5,10,15,20)
grid.K <- 1:p
res1 <- criterionRkh(Y,X,H=grid.H,K=grid.K,B=50,method="SIR-I")
plot(res1,choice.H=c(2,5),choice.K=c(1,2))
HK <- which(res1\$Rkhbootmean[,1:(p-1)] == max(res1\$Rkhbootmean[,1:(p-1)]),
arr.ind=TRUE)[1,]
H  <- grid.H[HK[1]]
K <- grid.K[HK[2]]

## Selecting relevant variables in X
if (K==1) {
res2 <- edrSelec(Y, X, H, K, "CSS", pZero=p/2, NZero=200, zeta=0.05)
dev.new()
plot(res2)
if (1 %in% which(res2\$scoreVar == max(res2\$scoreVar))) {
message("The first variable is selected, as it should be.")
} else {
message("The variable selection failed.")
}
} else {
message("The choice of K failed.")
}```

### Author(s)

Raphal Coudret , Benot Liquet and Jrme Saracco

Documentation reproduced from package edrGraphicalTools, version 2.1. License: GPL (>= 2.0)