[CLASSO] classogroup —— Plot the group selection information after classifylasso.

Syntax

classogroup [, options]

global_twoway_options control the overall style

icplot_options control the information criterion plot

iterplot_options control the iteration number plot

global_twoway_options Description

title(tinfo) overall title; the default is "Detail of Group Number Selection"

subtitle(tinfo) subtitle of title; the default is "Maximum Number of Groups: maxgroup; Chosen Number of Groups: group"

ytitle1(axis_title) specify y-axis(1) title; the defalut is "Information Criterion"

ytitle2(axis_title) specify y-axis(2) title; the defalut is "Number of Iterations"

ylabel1(rule_or_values) specify y-axis(1) label; the defalut is adapted by Stata

ylabel2(rule_or_values) specify y-axis(2) label; the defalut is "0(5)maxIter"

xtitle(axis_title) specify x-axis title; the defalut is "Number of Groups"

xlabel(rule_or_values) major ticks plus labels; the default is "1(1)numK"

name(name_option) specify name; the default is "selection"

saving(saving_option) save graph to disk; the default is not to save if not specified

export(name [, options]) export graph to disk; the default is not to export if not specified

scheme(schemename) specify the overall look of the graph; the default is controled by set scheme

twoptions(twoway_options) additional option for the graph

nowindow suppress the graph window

icplot_options Description

noicplot suppress the information criterion plot

iclwidth(linewidthstyle) line width; the default is 0.5

iclpattern(linepatternstyle) line pattern; the default is solid

iclcolor(colorstyle) line color; the default is black

icmsize(markersize) scatter size; the default is 2

icmcolor(colorstyle) scatter color; the default is black

icconnect(connectstyle) style of connected line; the default is direct

icoptions(scatter_options) additional options

iclegend([contents] [locations]) legend for the plot; the default is "Information Criterion"

iterplot_options Description

noiterplot suppress the iteration plot

iterlwidth(linewidthstyle) line width; the default is 0.5

iterlpattern(linepatternstyle) line pattern; the default is dash

iterlcolor(colorstyle) line color; the default is blue

itermsize(markersize) scatter size; the default is 2

itermcolor(colorstyle) scatter color; the default is blue

iterconnect(connectstyle) style of connected line; the default is direct

iteroptions(scatter_options) additional options

iterlegend([contents] [locations]) legend for the plot; the default is "Number of Iterations"

Description

classogroup utilizes graph twoway to visualize the group number selection information in one graph.
The x-axis indicates the group number.
Both information criterion and number of iterations are ploted, which are respectively measured by y-axis(1) and y-axis(2).
For each element, both line and scatter plot is allowed.

Options

global_twoway_options specify how the overall style looks like, such as titles, axis labels, etc.
See [G-3] twoway_options for detailed description.

title(), subtitle(), ytitle1(), ytitle2(), ylabel1(), ylabel2() xtitle(), and xlabel() are the same two-way options
as in [G-3] title_options, [G-3] legend_options and [G-3] axis_options.

name() saving(), export(), and scheme() specify the graph name, the save path, the export name, or overall look,
as [G-3] name_option, [G-3] saving_option, [G-2] graph export, [G-4] Schemes intro.

twoptions() specify additional [G-3] twoway_options other than above if needed.
To modify the above eight options, please do not use twoptions(). Use it only when the above is not enough.

nowindow suppress the graph window.

icplot_options specify how the the style of the information criterion plot.
See [G-2] graph twoway scatter for detailed description.

noicplot suppresses the corresponding plot.

iclpattern(),iclcolor(),icmsize(),icmcolor(),icconnect()
specify the line pattern, line color, scatter size, scatter color, connect style
as in [G-3] connect_options and [G-3] marker_options.

icoptions() specifies additional options in [G-2] graph twoway scatter for the corresponding plot other than above if needed. Note that to modify the above option, please do not use icoptions().

iclegend() specifies the legend of the information criterion plot as [G-3] legend_options.

iterplot_options specify how the the style of the iteration plot.
See [G-2] graph twoway scatter for detailed description.

noiterplot suppresses the corresponding plot.

iterlpattern(),iterlcolor(),itermsize(),itermcolor(),iterconnect()
specify the line pattern, line color, scatter size, scatter color, connect style
as in [G-3] connect_options and [G-3] marker_options.

iteroptions() specifies additional options in [G-2] graph twoway scatter for the corresponding plot other than above if needed. Note that to modify the above option, please do not use iteroptions().

iterlegend() specifies the legend of the corresponding plot as [G-3] legend_options.