Announcement

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

  • Truncated labels when using tab,sum

    Good day everyone,

    I am having trouble finding a way to solve this.

    I am trying to use tabulate,summarize . The categories for tab have very long labels attached to them, and as a result they are getting truncated.

    How would I go about not having them be truncated?

    Example of code:
    tab (industry), sum(sales)

    Thanks in advance.

  • #2
    I would try something like this:

    Code:
    egen mean = mean(price), by(industry)
    egen sd = sd(price), by(industry) 
    egen tag = tag(industry) 
    format mean sd %9.0f 
    list industry mean  sd if tag, noobs
    and use also options of list to control abbreviation.

    Comment


    • #3
      Thanks, Nick. That should work like a dream.

      Comment

      Working...
      X