Dan wrote:
I am having problems getting -fillin- to work on a dataset with
a variable which takes a large number of values (32000).
My dataset has just 2 variables sex, and area (as string).
No missing values.
. tab sex, mi
sex | Freq. Percent Cum.
------------+-----------------------------------
1 | 32,507 50.01 50.01
2 | 32,496 49.99 100.00
------------+-----------------------------------
Total | 65,003 100.00
so now I
. fillin sex soal
But after this I have no extra records
. tab fillin, mi
_fillin | Freq. Percent Cum.
------------+-----------------------------------
0 | 65,003 100.00 100.00
------------+-----------------------------------
Total | 65,003 100.00
-----------------------------------------------------------------
I cannot reproduce the problem:
clear
set seed 12345
set obs 65003
gen sex = 1+mod(_n,2)
gen soal=string(int(_n/2))
drop if uniform()<.01
. tab1 sex , missing
-> tabulation of sex
sex | Freq. Percent Cum.
------------+-----------------------------------
1 | 32,157 50.01 50.01
2 | 32,147 49.99 100.00
------------+-----------------------------------
Total | 64,304 100.00
. fillin sex soal
. tab1 _fillin , missing
-> tabulation of _fillin
_fillin | Freq. Percent Cum.
------------+-----------------------------------
0 | 64,304 98.95 98.95
1 | 682 1.05 100.00
------------+-----------------------------------
Total | 64,986 100.00
It behaves as expected.
1) Are you sure that there actually are any observations missing?
2) What operationg system and Stata version do you use?
Svend
________________________________________________________
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone, work: +45 8942 6090
Phone, home: +45 8693 7796
Fax: +45 8613 1580
E-mail: [email protected]
_________________________________________________________
*
* 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/