Announcement

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

  • INCOME in Stata

    One more question. I want to break down the following data into percentages for <20,000 income, between 20,000 and 40,000 and then greater than 40,000. How do I do this?


    type: numeric (double)

    range: [-108327.8,6520261] units: .01
    unique values: 21044 missing .: 1/41554

    mean: 53922.2
    std. dev: 83278.4

    percentiles: 10% 25% 50% 75% 90%
    8968.45 16731.9 31626 65086.9 119027

  • #2
    Posting using full real names is requested. Please study the Advice under FAQ.

    Comment


    • #3
      How do I do that? I just did tabu INCOME and got those

      Comment


      • #4
        You are expected to search the help files before posting to the forum. This could be easily achieved by using gen, replace and if qualifiers.

        Here's a fast way:
        Code:
        ​gen inc_category=irecode(income,20000,40000)
        tab inc_category
        Which you would have found using findit recode. Please read the FAQ, browse the Stata Help and the Statalist archives before posting.
        Jorge Eduardo Pérez Pérez
        www.jorgeperezperez.com

        Comment

        Working...
        X