I need to do it in a first step in order to merge different data sets from =
a
series of quarters. And because the panel has a number of families that
rotate I need this idewntifier to merge the datasets. I will only create a
general identifier in the end.
Really nice I just created it.
I had checked that link you sent me but only now I was able to built the
variable.
Kind wishes
N=E1dia
----- Original Message -----
From: "Nick Cox" <[email protected]>
To: <[email protected]>
Sent: Friday, July 27, 2007 6:09 PM
Subject: st: RE: Identifier from three variables
> I'll answer this myself:
>
> 1. Don't do that. Use -egen, group()- with the -label- option.
>
> 2. See also
>
> FAQ . . . . . . . . . . . . . . . . . . . . . . Creating group
> identifiers
> 3/01 How do I create individual identifiers numbered
> from 1 upwards?
> http://www.stata.com/support/faqs/data/group.html
>
> 3. If you really must, look into -egen, concat()-, including
> its options.
>
> Nick
> [email protected]
>
> N=E1dia N. Sim=F5es
>>
>> How can I generate an identifier from three variables?
>> In my data I have a column for the house, one for the family
>> and one for the individual
>>
>> example:
>>
>> house family individual
>> 1 1 1
>> 1 1 2
>> 1 1 3
>> 2 1 1
>> 2 1 2
>> ...
>>
>> and I would like to know how can I create an identifier per
>> individual such as:
>>
>> individual
>> 010101
>> 010102
>> 010103
>> 020101
>> ...
>
> *
> * For searches and help try:
> * http://www.stata.com/support/faqs/res/findit.html
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/