View source: R/S3methods_islasso.R
plot.islasso | R Documentation |
Diagnostics plots for Induced Smoothing Lasso Model
## S3 method for class 'islasso'
plot(x, ...)
x |
an object of class |
... |
other graphical parameters for the plot |
The plot on the top left is a plot of the standard deviance residuals against the fitted values. The plot on the top right is a normal QQ plot of the standardized deviance residuals. The red line is the expected line if the standardized residuals are normally distributed, i.e. it is the line with intercept 0 and slope 1. The bottom two panels are plots of link and variance functions. On the left is squared standardized Pearson residuals against the fitted values. On the right working vector against the linear predictor.
Maintainer: Gianluca Sottile <gianluca.sottile@unipa.it>
islasso.fit
, summary.islasso
, residuals.islasso
, logLik.islasso
, predict.islasso
and deviance.islasso
methods.
## Not run:
set.seed(1)
n <- 100
p <- 100
p1 <- 20 #number of nonzero coefficients
coef.veri <- sort(round(c(seq(.5, 3, l=p1/2), seq(-1, -2, l=p1/2)), 2))
sigma <- 1
coef <- c(coef.veri, rep(0, p-p1))
X <- matrix(rnorm(n*p), n, p)
mu <- drop(X%*%coef)
y <- mu + rnorm(n, 0,sigma)
lambda <- 2
o <- islasso(y ~ ., data = data.frame(y = y, X),
family = gaussian(), lambda = lambda)
plot(o)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.