Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72762

Simple pb with long format

$
0
0
Hi there,
I am starting with stata and I would really appreciate some help on this problem, I know it is quite basic but I can't get it.
I just would like to numbers the different value of one variable (province) within the same facility_code. I think I need to create this two variables (var 1 var 2) but it doesn't work..
Should I use egen command?
Thanks a lot for your help!
facility_code Province var 1 var 2
1 12 1 1
2 13 1 1
3 56 1 2
3 56 1 2
3 12 2 2
4 6 1 1
4 6 1 1
5 7 1 1
6 9 1 1
7 12 1 1
7 12 1 1
8 3 1 2
8 4 2 2

Viewing all articles
Browse latest Browse all 72762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>