Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to Display Full (Non-Abbreviated) Matrix Column Names

    I can't seem to figure it out with "matrix list" or "matlist". Neither seems to admit a way to not abbreviate matrix column names. What is the way to do this?

  • #2
    You could transpose the matrix and use the -twidth()- option of matlist.

    Code:
    sysuse auto, clear
    mkmat disp gear head in 1/5, mat(X)
    matlist X
    mat X= X'
    matlist X, twidth(30)
    Res.:

    Code:
    . matlist X
    
                 | displac~t  gear_ra~o   headroom 
    -------------+--------------------------------
              r1 |       121       3.58        2.5 
              r2 |       258       2.53          3 
              r3 |       121       3.08          3 
              r4 |       196       2.93        4.5 
              r5 |       350       2.41          4 
    
    . 
    . mat X= X'
    
    . 
    . matlist X, twidth(30)
    
                                   |        r1         r2         r3         r4         r5 
    -------------------------------+------------------------------------------------------
                      displacement |       121        258        121        196        350 
                        gear_ratio |      3.58       2.53       3.08       2.93       2.41 
                          headroom |       2.5          3          3        4.5          4 
    
    .

    Comment

    Working...
    X