Hi,
Stata's -ipolate- command produces results I don't
understand. Here is an example:
. set seed 2346
. sysuse auto
. drop if rep78<. & uniform()<.8
. ipolate rep78 mpg, g(rep78i)
. sort mpg
. list rep78 mpg rep78i, clean
rep78 mpg rep78i
1. . 14 .
2. 4 15 3.5
3. 3 15 3.5
4. 3 16 3
5. 2 17 3.5
6. 5 17 3.5
7. 3 18 3
8. 3 19 3
9. 3 19 3
10. . 19 3
11. 3 21 3
12. . 22 3.5
13. 4 23 4
14. 4 25 4
15. 4 25 4
16. . 26 4.1
17. . 26 4.1
18. 5 35 5
-help ipolate- states that rep78i should equal rep78
if rep78 is not missing ("ipolate creates newvar = yvar,
where yvar is not missing"). This is certainly not the case
in the above example. For some reason, "3.5" is stored
for cases 2, 3, 5, and 6. Can someone explain this to me?
Many thanks,
ben
*
* 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/