gvcm.cat() offers two ways of visualizing a gvcm.cat object.
Default option type="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.
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.## S3 method for class 'gvcm.cat':
plot(x, accuracy = 2, type = "path", individual.paths = FALSE,
xlim, ylim, main = NULL, indent = 0, color = TRUE, ...)gvcm.cat object with value plot unequal NA"path", "score"; defines the type of plotx limits (x1, x2) of the ploty limits (y1, y2) of the plotFALSE, paths are gray and dotted/dashedsteps estimates related to different values of lambda, see cat_control. There is no plot for methods "AIC" and "BIC".gvcm.cat## continues example of function gvcm.cat
plot(m1)Run the code above in your browser using DataLab