Hello!
I am currently working on a panel dataset containing, amongst others, the variables "companies", "year" (2010-2018), "sector" (arbitrary 4 digit number), and "net sales". Now,
I want to generate a new variable, namely, the sum of the net sales for all individual companies in each corresponding sector and the corresponding year.
I tried to find a command, however, I was unsuccessful.
Can anyone help me out?
Thank you in advance!
Related Posts with Creating a sum variable which depends on 2 other variables
Shading between two lines in a graphDear Statalist, I'm trying to create a shaded area between the two borders of the confidence interv…
Bai and Perron (1998) testDear all, I have to test if there are any unknown structural breaks in my panel data. I want to use…
Extracting the first number from a numeric variable into a new variableHi, I would like to extract the first number of another variable into a new variable. (And an addit…
'' xthenreg'' for dynamic threshold modelsDear all it has been 8 months now since we got the new stata command for a dynamic threshold model …
Quantile regressions-panel data, Pre-reqsHi Joao Santos Silva I am worried about two things in quantile regressions for panel data. 1. My d…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a sum variable which depends on 2 other variables
Post a Comment