Hello!
I have a problem: I have a dataset which include Chinese cities, however, they are stored in a string variable. For each city there are several observations. Now, I would like to put a number on each of the cities, so for instance: Beijing =1, Tianjin =2 etc.
Is there an appropriate command in Stata to do that?
Thank you in advance!
Related Posts with Create categorical variables from string variable
graph quadratic relationship with binary moderatorHey everybody, I found the following graph in a paper and would like to recreate the exact same gra…
Generalized linear models interpretationsI have variable two dependent “total bone density “which measured in cm3 and “bone density percentag…
ineqdec0, missing values and error in loopHi everyone, I am trying to export a large number of descriptive statistics on household income by c…
"better looking" bar?Dear All, I have data Code: * Example generated by -dataex-. To install: ssc install dataex clear …
How to plot graph between p-value and quantiles in STATA?Here is the results of Quantile granger Causality in Table 8 and i want to plots the graph between p…
Subscribe to:
Post Comments (Atom)
0 Response to Create categorical variables from string variable
Post a Comment