Statalist


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

st: AW: summation


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: summation
Date   Tue, 11 Aug 2009 17:00:01 +0200

<> 

This task will be much easier for you if you -reshape- the data to long
format, which enables you to use -egen, rowtotal()-
Also see http://www.stata-journal.com/article.html?article=pr0046

Give a more comprehensive excerpt of your data for further help...



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Arina Viseth
Gesendet: Dienstag, 11. August 2009 16:56
An: statalist@hsphsun2.harvard.edu
Betreff: st: summation

Dear Statalist,

I imported from excel quarterly data for three variables, from 1995 to 2008.


It currently looks like this on Stata:
var A                    var B            var C
1995Q1 1995Q2...2008Q4 |1995Q1 ...2008Q4| 1995Q1...2008Q4 

I would like to generate the sum all three variables for the same quarterly
data, and I am not sure how to proceed. Would there a quick way for me to
do?  

Thank you very much in advance for any suggestion.

Sincerely,
Arina
*
*   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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index