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
Wide to long reshape, hundreds of stubsDear Statalist community, I fear this might be a simple question but I am having trouble finding an…
Identify observations appeared in the previous yearDear All, I find this question here. The data set is Code: * Example generated by -dataex-. To inst…
Variable with percentile groupsHi Stata users, I have a continuous variable and would like to generate a new variable that states …
When shoul I use the "noconstant" option in xtunitroot test?Hi I want to know how to use the "noconstant" option in xtunitroot test. According to Stata manual,…
Pooling dataHi everyone. I have a question on how pooling data in stata. I am working with a repeated cross-sect…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable
Post a Comment