Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: use of impute command


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Re: use of impute command
Date   Thu, 26 Jun 2003 21:19:07 -0500

----- Original Message ----- 
From: "Polly Smiths" <pollysmiths@hotmail.com>
To: <statalist@hsphsun2.harvard.edu>
Sent: Thursday, June 26, 2003 3:22 PM
Subject: st: use of impute command


> Dear STATA-listers,
> I am a beginner with STATA and trying to use the impute command to deal
with
> some missing data. However, despite having attempted several different
> specifications, I continue to receive a message to the effect that the
> command was executed but with no changes made.
> I wondered if there are some preconditions for the use of this command?
> Thank you very much.
> best,
> Polly
>

hmm, are you sure you have missing observations?

It seems to work with the auto dataset.

. use "C:\Stata8\auto.dta", clear
(1978 Automobile Data)

. impute rep78 price mpg, gen(foo)
  6.76% (5) observations imputed

You might also find -hotdeck-  (findit hotdeck) and Matt
Schonlau's -hotdeckvar-
(http://www.schonlau.net/statasoftware/hotdeckvar.ZIP) useful.

Scott




*
*   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