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
Reshaping database long to wide and deleting duplicatesHello, Really grateful for any help with a data management question. My dataex is below: Basically…
How to show sigma2 and gamma with b using estout command?HI would like to know how to show sigma2 and gamma with b using estout command. Usually, after esti…
Panel data and OLS assumptionsHi! Few days ago, there was an online webinar in my country in which the lecturers stated that many …
How to interpret when the sign of square term flips in fixed-effect model?Dear all, The square term of my core predictor is positive in OLS & GMM, but it is negative in …
Integrating moderators in panel regressionDear all, I have a question about integrating moderators into a panel regression in Stata 14.2. Is …
Subscribe to:
Post Comments (Atom)
0 Response to Renaming New Variables' values
Post a Comment