Hi! I probably got a simple problem.
Let us say I got a variable, called States, with numbers from 1-30. Then I want to make a new variable of these numbers, called Region, where I would only include the numbers: 5, 11, 14, 23 and 29.
Is there a simple solution for my problem?
Related Posts with Make a new group variable of a variable
Combining time variables in panel data for forecastingHi, This is my first time here on statalist, I am trying to do a portfolio analysis in Stata and ra…
Correlation categorical and continuous variableHi everyone and happy new Year, I would like to show in a plot that a categorical variable (a dummy…
Bootstrap for outerweights in PLSSEMHi, I'm trying to get pvalues for the outer weights of the formative part of my measurement model in…
Sargan Test is too sensitiveHello Dear Stata Forum Users, I have a panel dataset (14,545 observations) and been using Arellano-…
robust standard error for IV panel regressionHi I have been running panel data random effect 2sls (G2SLS) and i want to robust to heteroskedastic…
Subscribe to:
Post Comments (Atom)
0 Response to Make a new group variable of a variable
Post a Comment