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
Interaction terms gone when using factor variable notationDear all, I am running a linear probability model on stata 15 using a mix of firm-level data and co…
Time Series IntervalsMany datasets from the RBI (India's Central Bank) have the time variable given in intervals. They ar…
Robust Quantile Regression (with robust standard errors)Dear Statalists I run two robustness regression models (rreg & mmregress) with similar (good) r…
Sensitivity analysis after fitting a generalize ordinal logistic modelDear Statalists, How do I create a sensitivity analysis after fitting a generalize ordinal logistic…
Hot to get a list of observations name - Google trends dataHi all, I'll try to be as clear as possible. I've to download google trends data regarding a list of…
Subscribe to:
Post Comments (Atom)
0 Response to Generating new variable
Post a Comment