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
Computing Z-Score (risk measure)Hi guys, I´m new here and have just startet do use STATA for my thesis. So basically I´m interested…
How to find the amount of gaps in a natural number sequence?Dear Stata community, I have some oddly formatted data, as in the following example dataset: Code:…
Drop if 3 consecutive quarters of negative sales growthHey! I have some difficulties to write a proper code to clean my data. The goal is to keep only fir…
how to draw a plot with confidence interval non-parametric regHi, I am using npregress kernel code for my analysis which goes like this: npregress kernel DepVar…
Add missing date, last observationHi, I do have an issue with my dataset. I need to add missing dates and replace the variable "creat…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable
Post a Comment