📄 cluster_dendrogram.hlp
字号:
{smcl}
{* 05apr2005}{...}
{cmd:help cluster dendrogram} {right:dialog: {bf:{dialog cluster_dendrogram:cluster dendrogram}}}
{hline}
{title:Title}
{p2colset 5 32 34 2}{...}
{p2col :{bf:[MV] cluster dendrogram} {hline 2}}Dendrograms for hierarchical
cluster analysis{p_end}
{title:Syntax}
INCLUDE help cluster_dendro_optstab
{title:Description}
{pstd}
{cmd:cluster dendrogram} produces dendrograms (also called cluster trees)
from a hierarchical clustering. See {helpb cluster} for a list of the
available {cmd:cluster} commands.
{pstd}
Dendrograms graphically present the information concerning which observations
are grouped together at various levels of (dis)similarity. At the bottom of
the dendrogram, each observation is considered its own cluster. Vertical
lines extend up for each observation, and at various (dis)similarity values
these lines are connected to the lines from other observations with a
horizontal line. The observations continue to combine until, at the top of
the dendrogram, all observations are grouped together.
{pstd}
The height of the vertical lines and the range of the (dis)similarity axis
give visual clues about the strength of the clustering. Long vertical lines
indicate more distinct separation between the groups. Long vertical lines
at the top of the dendrogram indicate that the groups represented by those
lines are well separated from one another. Shorter lines indicate groups that
are not as distinct.
{title:Options}
{dlgtab:Main}
{phang}
{opt quick} switches to a different style of dendrogram where
the vertical lines only go straight up from the observations, instead of the
default action of recentering the lines after each merge of observations in
the dendrogram hierarchy. Some people prefer this representation, and it is
quicker to render.
{phang}
{opth labels(varname)} indicates that {it:varname} is to
be used in place of observation numbers for labeling the observations at the
bottom of the dendrogram.
{phang}
{opt cutnumber(#)} displays only the top {it:#} branches of
the dendrogram. With large dendrograms, the lower levels of the tree become
too crowded. With {opt cutnumber()}, you can limit your view to the upper
portion of the dendrogram. Also see the {opt cutvalue()} and {opt labcutn}
options.
{phang}
{opt cutvalue(#)} displays only the top portion of the
dendrogram. Only those branches of the dendrogram that are above the {it:#}
(dis)similarity measure are presented. With large dendrograms, the lower
levels of the tree become too crowded. With {opt cutvalue()}, you can limit
your view to the upper portion of the dendrogram. Also see the
{opt cutnumber()} and {opt labcutn} options.
{phang}
{opt showcount} requests that the number of observations associated with
each branch be displayed below the branches. {cmd:showcount} is most
useful with {cmd:cutnumber()} and {cmd:cutvalue()} since, otherwise, the
number of observations for each branch is one. When this option is
specified, a label for each branch is constructed using a prefix
string, the branch count, and a suffix string.
{phang}
{opt countprefix(string)} specifies the prefix string for the branch count
label. This option implies the {cmd:showcount} option.
{phang}
{opt countsuffix(string)} specifies the suffix string for the branch count
label. This option implies the {cmd:showcount} option.
{phang}
{opt countinline} requests that the branch count be put in-line with
the corresponding branch label. The branch count is placed below
the branch label by default. This option implies the
{cmd:showcount} option.
{phang}
{opt vertical} and {opt horizontal} specify whether the {it:x-} and
{it:y-}coordinates are to be swapped before plotting {hline 2} {opt vertical}
(the default) does not swap the coordinates, whereas
{opt horizontal} does.
{dlgtab:Plot}
{phang}
{it:line_options} affect the rendition of the lines; see
{it:{help line_options}}.
{dlgtab:Add plot}
{phang}
{opt addplot(plot)} provides a way to add other plots to the
generated graph. See {it:{help addplot_option}}.
{dlgtab:Y-Axis, X-Axis, Title, Caption, Legend, Overall}
{phang}
{it:twoway_options} and are any of the options documented in
{it:{help twoway_options}} excluding {opt by()}. These include options for
titling the graph (see {it:{help title_options}}) and options for
saving the graph to disk (see {it:{help saving_option}}).
{title:Examples}
{phang}{cmd:. cluster dendrogram L2clnk, horizontal labels(labt)}{p_end}
{phang}{cmd:. cluster dendrogram L2clnk, labels(labt) quick}{p_end}
{phang}{cmd:. cluster tree if g3==3, cutnumber(5) showcount}{p_end}
{phang}{cmd:. cluster dendrogram, cutvalue(75.3)}{p_end}
{phang}{cmd:. cluster tree, cutvalue(75.3) showcount countinline}{p_end}
{title:Also see}
{psee}
Manual: {bf:[MV] cluster},{break}
{bf:[MV] cluster dendrogram}
{psee}
Online: {helpb cluster}, {helpb clustermat};
{helpb cluster averagelinkage},
{helpb cluster centroidlinkage},
{helpb cluster completelinkage},
{helpb cluster generate},
{helpb cluster medianlinkage},
{helpb cluster notes},
{help cluster programming},
{helpb cluster singlelinkage},
{helpb cluster stop},
{help cluster utility},
{helpb cluster wardslinkage},
{helpb cluster waveragelinkage}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -