Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: "vertical filter and sum of data"


From   Maximiliano Manuel Silva Correa <[email protected]>
To   [email protected]
Subject   st: "vertical filter and sum of data"
Date   Tue, 13 Jul 2010 10:53:22 -0400

Dear Stata Community,

Id like to sum vertically some entries of my data but i dont know how.
Could you please tell me the sintax and structure of how to do this?

Suppose we have a several power transmission lines with several
substations in between, all over the US, indexed from 1 to Ni,
corresponding to a certain line Li. Each substation has a power
consumption (suppose one line per state). Additionaly we have a time
variable MONTH.

The structure of the data is

LINE S_INDEX MONTH POWER

Fixing LINE, MONTH, id like to sum POWER all over (S_INDEX) the line.

Any help will be greatly appreciated. Thank you in advance :) .

Max
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index