Hey everyone,
I have received a data set where the sender incorrectly assigned the wrong codes for my sex variable. Instead of having male, female, and other as 0, 1 and 2 respectively; they have instead assigned 1 as male, 2 as female, and 3 as other. I have tried to fix this with my commands and while it works for female and other, when typing the command for male replaces it with 3.
I would like to replace the code for male from 3 to 0. Is there a way to change the label codes itself?
Thanks very much for the help!
Related Posts with Changing Label Code in Label
How do i get the mean of all the seperate regressions?Hey, I have the problem that I have multiple regressions of years from 1963 to 2004 and I want the …
longitudinal dataI would be very pleased if someone can provide me references on how to claen longitudinal data. Than…
Stata runs very slow when estimating mixed models in a multiple imputed databaseDear Statalisters, I am using mixedin Stata 13 to assess the effect of a treatment on four different…
Write a function correctly [COLOR=rgba(0, 0, 0, 0.87)]Hello everybody[/COLOR] [COLOR=rgba(0, 0, 0, 0.87)]Can anyone tell me h…
Twin Fixed effects on panel dataHi all, I have a dataset of 7000 employees divided over 600 companies. I want to assess the impact …
Subscribe to:
Post Comments (Atom)
0 Response to Changing Label Code in Label
Post a Comment