📄 m4_manipulation.hlp
字号:
{smcl}
{* 02apr2005}{...}
{cmd:help m4 manipulation}
{hline}
{* index matrix functions}{...}
{title:Title}
{p 4 8 2}
{bf:[M-4] manipulation -- Matrix manipulation}
{title:Contents}
{col 5} [M-5]
{col 5}Manual entry{col 21}Function{col 39}Purpose
{col 5}{hline}
{col 5} {c TLC}{hline 15}{c TRC}
{col 5}{hline 3}{c RT}{it: Transposition }{c LT}{hline}
{col 5} {c BLC}{hline 15}{c BRC}
{col 5}{bf:{help mf_transposeonly:transposeonly()}}{...}
{col 21}{cmd:transposeonly()}{...}
{col 39}transposition without conjugation
{col 5}{bf:{help mf__transpose:_transpose()}}{...}
{col 21}{cmd:_transpose()}{...}
{col 39}transposition in place
{col 5} {c TLC}{hline 11}{c TRC}
{col 5}{hline 3}{c RT}{it: Diagonals }{c LT}{hline}
{col 5} {c BLC}{hline 11}{c BRC}
{col 5}{bf:{help mf_diag:diag()}}{...}
{col 21}{cmd:diag()}{...}
{col 39}create diagonal matrix from vector
{col 5}{bf:{help mf_diagonal:diagonal()}}{...}
{col 21}{cmd:diagonal()}{...}
{col 39}extract diagonal of matrix into vector
{col 5}{hline}
{col 5} {c TLC}{hline 24}{c TRC}
{col 5}{hline 3}{c RT}{it: Triangular & symmetric }{c LT}{hline}
{col 5} {c BLC}{hline 24}{c BRC}
{col 5}{bf:{help mf_lowertriangle:lowertriangle()}}{...}
{col 21}{cmd:lowertriangle()}{...}
{col 39}extract lower triangle
{col 21}{cmd:uppertriangle()}{...}
{col 39}extract upper triangle
{col 5}{bf:{help mf_makesymmetric:makesymmetric()}}{...}
{col 21}{cmd:makesymmetric()}{...}
{col 39}make matrix symmetric (Hermitian)
{col 5} {c TLC}{hline 9}{c TRC}
{col 5}{hline 3}{c RT}{it: Sorting }{c LT}{hline}
{col 5} {c BLC}{hline 9}{c BRC}
{col 5}{bf:{help mf_sort:sort()}}{...}
{col 21}{cmd:sort()}{...}
{col 39}sort rows of matrix
{col 21}{cmd:jumble()}{...}
{col 39}randomize order of rows of matrix
{col 21}{cmd:order()}{...}
{col 39}obtain permutation vector
{col 21}{cmd:invorder()}{...}
{col 39}invert permutation vector
{col 21}{cmd:revorder()}{...}
{col 39}reverse permutation vector
{col 21}{cmd:_collate()}{...}
{col 39}order matrix on permutation vector
{col 5}{bf:{help mf_uniqrows:uniqrows()}}{...}
{col 21}{cmd:uniqrows()}{...}
{col 39}sorted, unique rows
{col 5} {c TLC}{hline 9}{c TRC}
{col 5}{hline 3}{c RT}{it: Editing }{c LT}{hline}
{col 5} {c BLC}{hline 9}{c BRC}
{col 5}{bf:{help mf__fillmissing:_fillmissing()}}{...}
{col 21}{cmd:_fillmissing()}{...}
{col 39}change matrix to contain missing values
{col 5}{bf:{help mf_editmissing:editmissing()}}{...}
{col 21}{cmd:editmissing()}{...}
{col 39}replace missing values in matrix
{col 5}{bf:{help mf_editvalue:editvalue()}}{...}
{col 21}{cmd:editvalue()}{...}
{col 39}replace values in matrix
{col 5}{bf:{help mf_edittozero:edittozero()}}{...}
{col 21}{cmd:edittozero()}{...}
{col 39}edit matrix for roundoff error (zeros)
{col 21}{cmd:edittozerotol()}{...}
{col 39}same, absolute tolerance
{col 5}{bf:{help mf_edittoint:edittoint()}}{...}
{col 21}{cmd:edittoint()}{...}
{col 39}edit matrix for roundoff error (integers)
{col 21}{cmd:edittointtol()}{...}
{col 39}same, absolute tolerance
{col 5} {c TLC}{hline 21}{c TRC}
{col 5}{hline 3}{c RT}{it: Permutation vectors }{c LT}{hline}
{col 5} {c BLC}{hline 21}{c BRC}
{col 5}{bf:{help mf_invorder:invorder()}}{...}
{col 21}{cmd:invorder()}{...}
{col 39}inverse of permutation vector
{col 21}{cmd:revorder()}{...}
{col 39}reverse of permutation vector
{col 5} {c TLC}{hline 36}{c TRC}
{col 5}{hline 3}{c RT}{it: Matrices into vectors & vice versa }{c LT}{hline}
{col 5} {c BLC}{hline 36}{c BRC}
{col 5}{bf:{help mf_vec:vec()}}{...}
{col 21}{cmd:vec()}{...}
{col 39}convert matrix into column vector
{col 21}{cmd:vech()}{...}
{col 39}convert symmetric matrix into colvector
{col 21}{cmd:invvech()}{...}
{col 39}convert colvector into symmetric matrix
{col 5}{bf:{help mf_rowshape:rowshape()}}{...}
{col 21}{cmd:rowshape()}{...}
{col 39}reshape matrix to have {it:r} rows
{col 21}{cmd:colshape()}{...}
{col 39}reshape matrix to have {it:c} columns
{col 5}{hline}
{title:Description}
{p 4 4 2}
The above functions manipulate matrices, such as extracting the diagonal,
sorting, etc.
{title:Remarks}
{p 4 4 2}
There is a thin line between manipulation and utility; also see
{bf:{help m4_utility:[M-4] utility -- Matrix utility functions}}
{title:Also see}
{p 4 13 2}
Manual: {hi:[M-4] manipulation}
{p 4 13 2}
Online: help for
{bf:{help mata:[M-0] intro}}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -