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
How can I find maximal value of one variable between datesArray From the screenshot how can I find max cr between admitdate and disdate Thank you …
ttest over multiple subsamplesHi, I have three variables, x, y, and z. x and y are categorical variables, x takes 0 and 1, but y t…
How do you combine categorical and numerical variables?How can I combine variables? These variables all refer to use of prescription benzodiazepines: val…
PISATOOLS package - How can I conduct a linear regression with one interaction?Hello everyone, I try to analyze PISA 2018 data and, more specifically, I would like to conduct a s…
Minimum number of observations required in panel data regressionHello all, I am working with stata and running panel data regressions. I want to write on the influ…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable
Post a Comment