Hi,
I need to create ID variable which will assign numbers to my panel data variable "Bankname" .
I have already run the following command:
encode Bankname, gen(id)
list Bankname in 1/1867
however did not get the desired results as numbers are in an increasing order. I need to have the same number for the same banks
Thanks for your help
kind regards,
Nigar
I need to create ID variable which will assign numbers to my panel data variable "Bankname" .
I have already run the following command:
encode Bankname, gen(id)
list Bankname in 1/1867
however did not get the desired results as numbers are in an increasing order. I need to have the same number for the same banks
Thanks for your help
kind regards,
Nigar
Comment