Dear colleagues,
I am trying to encode and generate a list of 30 villages. I know encode and generate will convert the variable into numeric with value labels of village names in alphanumeric order.
I would like to keep that but I would like that the encode starts the numbering from 901 instead of 1. I don't want to manually add 900 onto the encoded variables because this will remove my value labels and I will have to manually add it.
Anyone knows how to change the starting number for encode, gen?
Thanks,
I am trying to encode and generate a list of 30 villages. I know encode and generate will convert the variable into numeric with value labels of village names in alphanumeric order.
I would like to keep that but I would like that the encode starts the numbering from 901 instead of 1. I don't want to manually add 900 onto the encoded variables because this will remove my value labels and I will have to manually add it.
Anyone knows how to change the starting number for encode, gen?
Thanks,
Comment