Hello,
I'm working with a panel data set covering the climate vulnerability scores for countries over a set of years. One of my categorical variables is region. For each observation, my dataset literally displays the full region name e.g. "East Asia & Pacific". For graphing my descriptive stats, I would like the region names to appear as abbreviations. For example, under the bars chart that shows my mean score for the outcome variable (vulnerability score), the x-axis is jumbled up from the full region names. I would like it to show EAP instead of "East Asia & Pacific. I have region dummy variables that are names after the region abbreviations. This could have been prevented if I replaced the region names with their respective abbreviations in excel, how may I do the same in Stata 17.
Related Posts with Changing variable names
Panel data: the share of inter and intra variabilities in total variabilities for each variableHello. I have panel data. How could we calculate the share of inter and intra variabilities in total…
Scalar multiplication problemHi, Stata community! I am trying to do a simple multiplication between scalars in two loops and hav…
Delete observations if not completeHi, I have a question about data for my thesis and I'm new with Stata! I have to observe whether o…
Expand sample using levels of a variableHello statalist, I am using Stata 15.1. I would like to expand a sample using the levelsof one vari…
Cubic age variable in linear regressionHi all, Upon visual inspection of my data, I noticed that my continuous variable, csh_sh, increased…
Subscribe to:
Post Comments (Atom)
0 Response to Changing variable names
Post a Comment