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
Difference between Quantile Regression and npregressHi, I am running into a problem about model selection. I am working on a validation of a questionnai…
How to transform geographic coordinates using stata ? Database: _ID _X _Y 1 1 285777.705 8679171.67 1 285777.099 8679161.67 1 285784.622 867…
Analyzing panel-data with multiple observations per time period (or two-way fixed effect)Hi all, I use Stata 15.1. I have a daily data (t=90) on Facebook linkclicks (DV), in three differen…
parallel errorhi, I installed the parallel package for stata mp and am trying to execute a command using parallel:…
Post-estimation: How do I test mean and slope differences for continuous by continuous interaction?Greetings! Longtime lurker here at statalist, but this will be my first post. So please let me know …
Subscribe to:
Post Comments (Atom)
0 Response to Changing Label Code in Label
Post a Comment