try -fillin-
rafal
Quoting Gianfranco Spiteri <[email protected]>:
Dear all,
I have a variable, which can have up to 5 observations. The observations may
be any integer from 1 to 5. Each number may be there only once but I could
have less than 5 observations in total.
I am trying to find a way of going through the list, identifying which
numbers are missing and appending these numbers to the dataset. Does anyone
have a relatively simple way of doing it?
an example would be as follows:
HACODE
1
3
5
and the end result would be
HACODE
1
3
5
2
4
many thanks
Gianfranco
-------------------------------------------------------------
Gianfranco Spiteri
EPIET Fellow
CDSC (NI)
McBrien Building
Belfast City Hospital
Lisburn Road
Belfast
BT9 7AB
Northern Ireland
[email protected]
Tele: +44 (0) 28 90263765 Fax: +44 (0) 028 90263511
*
* 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/
================
Rafal Raciborski
Graduate student
Department of Political Science
Emory University
301 Tarbutton Hall
1555 Dickey Drive Atlanta, GA 30322
404-378-9826 (home)
[email protected]
http://www.roofoos.net/
*
* 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/