I am conducting a cross-sectional study of UK firms. I have created a variable (ind1) that groups the firms into 11 industry categories numbered 1 to 11. I want to replace these values with industry names i.e. 1 = Natural Resources, 2 = Manufacturing etc. How do I go about this considering the variable ind1 is numeric? Do I first convert that to a string variable and literally type out a replace command for each category?
Related Posts with Renaming New Variables' values
Reshape data in order to calculate gini coefficient panel data using income groupsDear Statalist, I'm trying to calculate the Gini of counties using the the population of 20+ income…
sort row with string variables?Dear All, Is it possible to sort "string" variable? Suppose that the data set is Code: * Example ge…
IV ordered probit using CMP (syntax help)Hi There, I am estimating the causal effect of maternal education on child health. My dependent var…
Difference in Consecutive Values by Group LabelsDear Statalisters, I need to generate another variable called 'difference' which contains the differ…
outreg2 keep option does not workHello, I am in desperate need for some help for my thesis regarding Stata. I would like to make us…
Subscribe to:
Post Comments (Atom)
0 Response to Renaming New Variables' values
Post a Comment