Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65033

Compute totals by category stata

$
0
0
Hello everybody,


I am working right now on a big parlamentary database for my PhD (well actually a chapter of my phd), of the following form
1 - name candidate - money received - company financing - other variables
2 - James Smith - 900.000 - BigCompany
3 - James Smith - 670.560 - BigCompany
4 John Law - 356 - LittleCompany
5 etc


My question is:

I would like to sum up the values for a certain candidate, and to add options, something like:
tab value-received-from-BigCompany TOTALRECEIVEDBYCANDIDATE Candidate if Candidate=="Candidate1"


do you see what i mean ?

Or i would like to do the same with the frequency of "money received", if its easier.

Is there any command to do so? If not, i can do it by hand maybe. Bigcomapny financed sometimes a candidate with 15 amounts of money, sometimes with 5 big amounts, it depends.


Thanks a lot for your help,


Viewing all articles
Browse latest Browse all 65033

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>