Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: identifying missing values in a list


From   Rafal Raciborski <rafal.raciborski@emory.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: identifying missing values in a list
Date   Fri, 02 Jun 2006 09:42:50 -0400

try -fillin-
rafal


Quoting Gianfranco Spiteri <Gianfranco.Spiteri@hpa.org.uk>:

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

Gianfranco.Spiteri@hpa.org.uk
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)
rafal.raciborski@emory.edu
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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index