Graphical output of SIR_bootstrap
plot.SIR_bootstrap.Rd
Display the 10 first eigen values and the estimated index versus Y of the SIRbootstrap model.
Usage
# S3 method for class 'SIR_bootstrap'
plot(x, choice = "", ...)
Examples
# Generate Data
set.seed(10)
n <- 500
beta <- c(1,1,rep(0,8))
X <- mvtnorm::rmvnorm(n,sigma=diag(1,10))
eps <- rnorm(n)
Y <- (X%*%beta)**3+eps
# Apply bootstrap SIR
res = SIR_bootstrap(Y, X, H = 10, B = 10)
# Eigen values
plot(res,choice="eigvals")
# Estimated index versus Y
plot(res,choice="estim_ind")