plot.spar.cv {spareg} | R Documentation |
plot.spar.cv
Description
Plot cross-validation measure or number of active variables over different thresholds or number
of models of 'spar.cv'
object, produce a residuals vs fitted plot,
or a plot of the estimated coefficients in each marginal model, sorted by their absolute value.
Usage
## S3 method for class 'spar.cv'
plot(
x,
plot_type = c("Val_Measure", "Val_numAct", "res-vs-fitted", "coefs"),
plot_along = c("nu", "nummod"),
nummod = NULL,
nu = NULL,
xfit = NULL,
yfit = NULL,
opt_par = c("best", "1se"),
prange = NULL,
coef_order = NULL,
digits = 2,
...
)
Arguments
x |
result of spar.cv function of class |
plot_type |
one of |
plot_along |
one of |
nummod |
fixed value for |
nu |
fixed value for |
xfit |
data used for predictions in |
yfit |
data used for predictions in |
opt_par |
one of |
prange |
optional vector of length 2 for |
coef_order |
optional index vector of length p for |
digits |
number of significant digits to be displayed in the axis; defaults to 2L. |
... |
further arguments passed to or from other methods |
Value
'ggplot2::ggplot'
object