View source: R/S3methods_islasso.R
plot.islasso | R Documentation |
Produces standard diagnostic plots for a fitted islasso
model to assess residuals,
model fit, and variance structure.
## S3 method for class 'islasso'
plot(x, ...)
x |
An object of class |
... |
Additional graphical parameters passed to the underlying |
Generates a 2x2 grid of diagnostic plots:
Top-left: Deviance residuals vs fitted values.
Top-right: Normal Q-Q plot of standardized deviance residuals (red line = reference).
Bottom-left: Squared standardized Pearson residuals vs fitted values.
Bottom-right: Working response vector vs linear predictor.
These plots help assess the assumptions of linearity, homoscedasticity, and residual normality in penalized regression.
Gianluca Sottile gianluca.sottile@unipa.it
islasso
, summary.islasso
, residuals.islasso
,
logLik.islasso
, predict.islasso
, deviance.islasso
## Not run:
set.seed(1)
n <- 100; p <- 100
beta <- c(runif(20, -3, 3), rep(0, p - 20))
sim <- simulXy(n = n, p = p, beta = beta, seed = 1, family = gaussian())
fit <- islasso(y ~ ., data = sim$data, family = gaussian(), lambda = 2)
plot(fit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.