gvcm.cat object.## S3 method for class 'gvcm.cat':
plot(x, accuracy = 2, type = "path", individual = FALSE,
xlim, ylim, main = NULL, indent = 0, color = TRUE, xscale = "lambda",
label = TRUE, intercept = TRUE, ...)"path", "score", "coefs"; defines the type of the plottype="path" and type="coefs" only;
for type="path", it indicates whether the paths of all coefficients shall be plotted
into one common figure (default) or in an individual figure pex limits (x1, x2) of the ploty limits (y1, y2) of the plotFALSE, lines are gray and dotted/dashedtype="path" only; if xscale="lambda", the x-axis is scaled as $1 - \lambda/\lambda_{max}$; if xscale="beta", the scale of the x-axis is the scaled L1 norm of the penalized coefficients.FALSEtype="coefs" and type="path" only; if FALSE, for type="path", the path of the intercept is not plotted; if FALSE, for type="coefs", intercept is not added to smooth functiontype="path" delivers a graphic with the coefficient paths between 0 (= maximal penalization) and 1 (= no penalization).
Maximal penalization is defined by the minimal penalty parameter lambda that sets all penalized coefficients to zero (to constant relating to the intercept and assured.intercept = TRUE).
Minimal penalization means no penalization at all, i.e. lambda = 0.
Of course the minimal penalty parameter causing maximal penalization depends on how selection and clustering of coefficients is defined (see function gvcm.cat and cat_control).
Coefficients belonging to one covariate are plotted in the same color, coefficients that are not modified are plotted as dashed lines.
Paths are drawn by connecting steps estimates related to different values of lambda, see cat_control.
Option type="score" plots the cross-validation score (depending on criterion in cat_control) as a function of penalty parameter lambda and marks the chosen penalty parameter as a dotted line.
Opton type="coefs" plots the penalized coefficients whenever possible.
So far, there is no plot for methods "AIC" and "BIC".gvcm.cat## continues example of function gvcm.cat
plot(m1)
plot(m1, type="score")
plot(m1, type="coefs")Run the code above in your browser using DataLab