Hi, I have a small dataset as follow,
clear
input byte (id male)
1 0
1 0
1 0
1 1
2 1
2 0
2 0
2 0
3 0
3 0
3 0
3 0
4 0
4 0
4 1
end
It is evident that the male variable is incorrectly coded. How can I use Stata code to find this issue?
Thank you for your help!
clear
input byte (id male)
1 0
1 0
1 0
1 1
2 1
2 0
2 0
2 0
3 0
3 0
3 0
3 0
4 0
4 0
4 1
end
It is evident that the male variable is incorrectly coded. How can I use Stata code to find this issue?
Thank you for your help!

Comment