Hey stata community,
How can I generate a new variable that tells me how frequent a product is per country?
e.g.
if product A is launched in 20 markets, I want the new variable to just say 20.
if product B is launched in 8 markets, I want the new variable to say 8.
I have each variable per column.
Many thanks for your help!
Related Posts with Generating new variable
Separating cumulative data into actualsHi all First of all, apologies if I am not able to explain this very well. I am very new to Stata a…
Syntax for lincom won't work in Stata 16 but works fine in Stata 15Hello all. I'm a professor at Baldwin Wallace. On Thursday, I tried to run a lab with my class from …
How to tag outliers?Hi, I would like to create a dummy that's equal to 1 if it's an outlier, and 0 if not. I can use -ex…
Creating unique group ID variableDear all I have a hopefully trivial question that I can't get my head around right now. My data set…
import data from excel to stata-change the structure of the dataHi, I have a data file in excel which includes more than 300 firms. Information for each firm inclu…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable
Post a Comment