Announcement

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

  • New package: rowsum

    Hi Everyone,

    I write a new package called "rowsum" (my first package : ). It sums the values of multiple observations and saves results to a new observation.

    For example, we have a dataset of population, GDP, ...... of many states, you can use "rowsum" to create a new observation of all southern states.

    Please try
    Code:
    ssc install rowsum
    and I provide two examples.

    I welcome any suggestions and thank Kit Baum for all the help!

    Best,
    Pengzhan

  • #2
    Reading the entire help is advised to work out whether this is what you want.

    For the record, Pengzhan is calculating a sum over rows (observations), which isn't Stata's meaning with say theegen function rowtotal().

    Wanting extra results to be extra observations in the dataset will appeal to those who want to use Stata spreadsheet-style, which is working against Stata's inclinations.

    Comment


    • #3
      Thanks Nick for this summary.

      Exactly, it generates an extra observation. It would be also useful for those who want to keep a record of all data processing operations.

      Comment

      Working...
      X