View source: R/plot.SIR_threshold_bootstrap.R
plot.SIR_threshold_bootstrap | R Documentation |
Display the estimated index versus Y of the SIR model, the size of the models,
the occurrence of variable selection, the distribution of the coefficients of
and \hat{b}
and the distribution of \lambda_{opt}
found across the replications.
## S3 method for class 'SIR_threshold_bootstrap'
plot(x, choice = "", ...)
x |
A SIR_threshold_bootstrap object |
choice |
the graph to plot:
|
... |
arguments to be passed to methods, such as graphical parameters (not used here). |
No return value
# Generate Data
set.seed(10)
n <- 200
beta <- c(1,1,rep(0,8))
X <- mvtnorm::rmvnorm(n,sigma=diag(1,10))
eps <- rnorm(n)
Y <- (X%*%beta)**3+eps
res = SIR_threshold_bootstrap(Y,X,H=10,n_lambda=300,thresholding="hard", n_replications=30,k=2)
# Estimated index versus Y
plot(res,choice="estim_ind")
# Model size
plot(res,choice="size")
# Selected variables
plot(res,choice="selec_var")
# Coefficients of b
plot(res,choice="coefs_b")
# Optimal lambdas
plot(res,choice="lambdas_replic")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.