Announcement

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

  • I want to suppress the abbreviation of varables when use command "su", How?

    I want to suppress the abbreviation of varables when use command "su" to identify the variable names, how to set?
    Click image for larger version

Name:	1689427675184.jpg
Views:	1
Size:	44.3 KB
ID:	1720611

  • #2
    Thomas Steichen's -labsumm- shows variable labels in place of variable names, but if there are no variable labels, it shows the long variable name.

    Code:
    ssc describe labsumm
    Code:
    . clear
    
    . sysuse auto
    (1978 automobile data)
    
    . generate Miles_per_US_gallon = mpg
    
    . summarize mpg M*
    
        Variable |        Obs        Mean    Std. dev.       Min        Max
    -------------+---------------------------------------------------------
             mpg |         74     21.2973    5.785503         12         41
    Miles_per_~n |         74     21.2973    5.785503         12         41
    
    . labsumm mpg M*
               Variable |   Obs      Mean  Std. Dev.      Min       Max
    --------------------+----------------------------------------------
          Mileage (mpg) |    74   21.2973    5.7855        12        41
    Miles_per_US_gallon |    74   21.2973    5.7855        12        41

    --
    Bruce Weaver
    Email: [email protected]
    Version: Stata/MP 19.5 (Windows)

    Comment


    • #3
      Thanks so much, this is helpful!

      Comment

      Working...
      X