Hello
I intend to use a dataset multiple times. After encoding all my string variables, I exported my dataset in excel. I have labes in my dataset instead of values i.e males and females rather than 0 and 1.
The problem with this is that each time I use this dataset, I have to encode all the variables again. But if I keep only values, I lose the labels attached to it.
What would be the appropriate way to be able to preserve both values and labels?
I am naive to Stata, any help would be highly appreciated.
Thank you
Related Posts with Exporting variable values rather than labels
Inverse Probability Weighing for Multiple TreatmentsHi all, I am trying to compute inverse probability weight for multiple treatments. But I am struggl…
Re: Converting a string variable to a date variableHello, My date variable (moyr) could not be used when I declared my dataset to be monthly panel dat…
How to generate a single time variable for survey respondents in different time zones?Greetings, I'm running Stata 15 on a Mac OS. I recently conducted a survey across a period of a cou…
Specific Help in Merging my Two DatasetsHello Generous people on this Forum, I am trying to merge these two databases found herehttps://dri…
What is the c.operator in reg and set emptycells ?Today when I run this regression Code: did2s l_homicide [aweight=popwt], first_stage(i.sid i.year)…
Subscribe to:
Post Comments (Atom)
0 Response to Exporting variable values rather than labels
Post a Comment