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
Lagged Variables: Difference between L.Variable and Variable[_n-1]Hi everyone, I try to understand the difference between the codes mentioned in the header. On my da…
memory issue: Stata uses more than it saysHi all, I hope youre all well. Ive got a bit of a funky problem on my hand. I am running paralle…
Ordered logistic regression assumptionHello, I would like to ask what alternatives are better over ordered logistic regression if the ass…
New version of sdecode on SSCThanks as always to Kit Baum, a new version of the sdecode package is now available for download fro…
epctile command: how to get e(_N)Hi Statalist members, I have been running the used contributed epctile command to get the median va…
Subscribe to:
Post Comments (Atom)
0 Response to Changing variable names
Post a Comment