Dear Panos,
Hope the following lines of code will be useful.
. gen pnum = _n;
. sort pnum;
. gen age_grpi = age_grp;
. save data.dta, replace;
. hotdeck age_grpi using imp,store keep(pnum age_grpi);
. sort pnum;
. use imp1;
. sort pnum;
. merge pnum using data;
. tab _merge ;
. drop _merge;
. sort pnum;
. save data, replace;
. d,s;
Irena Dushi, Ph.D.
Research Analyst
International Longevity Center-USA, http://www.ilcusa.org
An affiliate of the Mount Sinai School of Medicine
60 East 86th Street
New York, NY 10028
Tel. 212-517-1309
-----Original Message-----
From: Panos Papanikolaou [mailto:[email protected]]
Sent: Thursday, October 16, 2003 11:21 AM
To: [email protected]
Cc: [email protected]
Subject: st: Re: using the hotdeck command
Dear All,
I would welcome your advice on the following query that i have.
I have collected survey data. Some information are missing. I suspect that
they go missing in a random rather a systematic way. For this reason, I
felt
that i could use STATA command HOTDECK, because i like its underlying
principle.
I am trying to use the above command, and it does not work. here, my syntax
comes.
hotdeck age_grp, (trust)
Looking at the stata's response, i see that it is looking for the
sub-commands:
1. command(command)
2. store.
Regarding the first complain, I looked at the help-file and it comes with a
syntax of the regression. I wonder if I would possibly use
a non-regression command?
Regarding the 2nd complaint, i cannot see any example in the help-file and
hence it is difficult to follow its logic.
I would be most grateful for your comments.
Thank you very much in advance for your assistance. I look forward to
hearing
from you.
Kindest Regards
PP
Panos Papanikolaou
Research Fellow
Nursing, Health and Social Care Research Centre
School of Nursing and Midwifery Studies
UWCM, 35-43 Newport Rd
Cardiff CF24 0AB
Tel: 029 2091 7812
Fax: 029 2091 7803
*
* 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/