Stata 11 help for matmacfunc

help matmacfunc -------------------------------------------------------------------------------

Title

Macro extended functions regarding matrices

Syntax

The following extended macro functions are allowed with local and global:

: rowfullnames A : colfullnames A

: rownames A : colnames A

: roweq A , quoted : coleq A , quoted

Description

These extended macro functions obtain the current row and column names and row and column equation names of a matrix. See [P] matrix rownames for setting the names. See [P] macro for information on extended macro functions. See [P] matrix for information on matrices in Stata.

Option

quoted encloses each equation name in double quotes. Some Stata estimation commands, such as mlogit, create matrices with equation names containing spaces when the dependent variable has value labels containing spaces. The quoted option makes it possible to correctly determine each equation name.

Examples

. local names : rownames mymat . local names : rowfullnames mymat . local names : colfullnames e(b)

Also see

Manual: [P] matrix

Help: [P] macro, [P] matrix, [P] matrix rownames


© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index