📄 matlist.hlp
字号:
{phang}{cmd:names(}{cmd:rows}|{cmd:columns}|{cmd:all}|{cmd:none}{cmd:)}
specifies whether the row and column names are displayed; the default is
{cmd:names(all)}, which displays both.
{phang}{opt nonames}
suppresses row and column names and is a synonym for {cmd:names(none)}.
{phang}{opt showcoleq(ceq)}
specifies how column equation names are displayed. The following {it:ceq} are
allowed:
{phang2}{opt f:irst} displays an equation name over the first column
associated with the name; this is the default.
{phang2}{opt e:ach} displays an equation name over each column.
{phang2}{opt c:ombined} displays an equation name centered over all
columns associated with that name.
{phang2}{opt l:combined} displays an equation name left-aligned over all
columns associated with the name.
{phang2}{opt r:combined} displays an equation name right-aligned over all
columns associated with the name.
{pmore}
If necessary, equation names are truncated to the width of the field in
which the names are displayed. With {opt combined}, {opt lcombined}, and
{opt rcombined}, the field comprises all columns and the associated
separators for the equation.
{phang}{cmd:colorcoleq(}{cmd:txt}|{cmd:res}{cmd:)}
specifies the mode (color) used for the column equation names that appear
in the first displayed row. Specifying {cmd:txt} (the default) displays the
equation name in the same color used to display text. Specifying {cmd:res}
displays the name in the same color used to display results.
{phang}{cmd:keepcoleq}
specifies that columns of the same equation should be kept together if
possible.
{phang}{cmd:aligncolnames(}{cmd:ralign}|{cmd:lalign}|{cmd:center}{cmd:)}
specifies the alignment for the column names. {cmd:ralign} indicates
alignment to the right, {cmd:lalign} indicates alignment to the left, and
{cmd:center} indicates centering. {cmd:aligncolnames(ralign)} is the default.
{phang}{opt noblank}
suppresses printing a blank line before the matrix. This is useful
in programs.
{phang}{opt nohalf}
specifies that, even if the matrix is symmetric, the full matrix is to be
printed. The default is to print only the lower triangle in such cases.
{phang}{opt nodotz}
specifies that {cmd:.z} {help missing} values should be listed as a field of
blanks rather than as {cmd:.z}.
{phang}{opt underscore}
converts underscores to blanks in row and column names.
{phang}{opt linesize(#)}
specifies the width of the page for formatting the table.
Specifying a value of {cmd:linesize()} wider than your screen width can produce
truly ugly output on the screen, but that output can nevertheless be useful
if you are logging output and later plan to print the log on a wide printer.
{title:Required options for the second syntax}
{phang}{marker cspec}{opt cspec(cspec)}
specifies the formatting of the columns and the separators of the columns,
{pmore}
where {it:cspec} is {space 4} [{it:sep} [{it:qual}] {cmd:%}{it:#}{cmd:s}]
{it:sep} {it:nspec} [{it:nspec} [...]]
{pmore}
and where {it:sep} is {space 6} [{cmd:o}{it:#}] {cmd:&}|{cmd:|} [{cmd:o}{it:#}]
{col 23}{c TLC}{hline 23}{c TRC}
{col 9}{it:qual} is{...}
{col 23}{c |}{it:qual} description {c |}
{col 23}{c LT}{hline 23}{c RT}
{col 23}{c |} {cmd:s} standard face {c |}
{col 23}{c |} {cmd:b} bold face {c |}
{col 23}{c |} {cmd:i} italics face {c |}
{col 23}{c |} {cmd:t} txt mode {c |}
{col 23}{c |} {cmd:e} error mode {c |}
{col 23}{c |} {cmd:c} cmd mode {c |}
{col 23}{c |} {cmd:L} left aligned {c |}
{col 23}{c |} {cmd:R} right aligned {c |}
{col 23}{c |} {cmd:C} centered {c |}
{col 23}{c |} {cmd:w}{it:#} field width {it:#} {c |}
{col 23}{c BLC}{hline 23}{c BRC}
{pmore}
{it:nspec} is {space 4} [{it:qual}] {it:nfmt sep}
{pmore}
and {it:nfmt} is {space 1} {cmd:%}{it:#}{cmd:.}{it:#}{{cmd:f}|{cmd:g}}
{pmore}
The first (optional) part of {it:cspec} specifies the formatting for the
column containing row names. It is required if the row names are part of the
display; see option {cmd:names()}. The number of {it:nspec}s should equal the
number of columns of {it:matname}.
{pmore}
In a separator specification, {it:sep}, {cmd:|} specifies that a vertical line
be drawn. {cmd:&} specifies that no line is to be drawn. The number of
spaces before and after the separator may be specified with {cmd:o}{it:#};
these default to 1 space, except that by default no spaces are included before
the first column and after the last column.
{pmore}Examples for a matrix with two columns (three columns when you count
the column containing the row labels):
{phang3}
{cmd:cspec(& %16s & %9.2f & %7.4f &)}
{break}
specifies that the first column, containing
row labels, is displayed using 16 characters, the second column is
displayed with format {cmd:%9.2f} and the third column with format {cmd:%7.4f}.
No vertical lines are drawn. The number of spaces before and after the
table is 0. Columns are separated with 2 spaces.
{phang3}
{cmd:cspec(&o2 %16s o2&o2 %9.2f o2&02 %7.4f o2&)}
{break}
specifies more white around the columns (2 spaces everywhere, for a total
of 4 spaces between columns).
{phang3}
{cmd:cspec(|%16s|%9.2f|%7.4f|)}
{break}
displays the columns in the same way as the first example, but
draws vertical lines before and after each column.
{phang3}
{bind:{cmd:cspec(| b %16s | %9.2f & %7.4f |)}}
{break}
specifies that vertical lines
be drawn before and after all columns, except between the two columns with
numerical entries. In addition the first column is displayed in bold face.
{phang}{marker rspec}{opt rspec(rspec)}
specifies where horizontal lines are to be drawn. {it:rspec} consists of a
sequence of characters, optionally separated by white space. {cmd:-} (or
synonym {cmd:|}) specifies that a line be drawn. {cmd:&} indicates that no
line is to be drawn. When {it:matname} has r rows, r+2 characters are
required if column headers are displayed, and r+1 characters otherwise. The
first character specifies whether a line be drawn before the first row of the
table, the second whether a line be drawn between the first and second row,
etc., and the last character whether a line is drawn after the last row of the
table.
{pmore}
You cannot add blank lines before or after the horizontal lines.
{pmore}For example, in a table with column headers and 3 numeric rows,
{phang3}
{cmd:rspec(||&&|)} {space 2} or equivalently {space 2} {cmd:rspec(--&&-)}
{break}
specifies that horizontal lines be drawn before the first
and second rows, and after the last row, but not elsewhere.
{title:Examples}
All numeric columns formatted the same
{p 8 16 2}
{cmd:. matlist A}
{p 8 16 2}
{cmd:. matlist A, left(4) title(Factor loadings)}
{p 8 16 2}
{cmd:. matlist F, format(%7.3f) row(Variables) nodotz}
{p 8 16 2}
{cmd:. matlist invsym(e(V)), coleq(combined) border(row) names(none)}
All numeric columns formatted differently
{p 8 16 2}
{cmd:. matlist A, cspec(& %8s & %9.0g & %7.0f &) rspec(&-&&&-)}
{title:Also see}
{psee}
Manual: {hi:[P] matlist}
{psee}
Online: {helpb matrix utility}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -