Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: epolate


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   st: AW: epolate
Date   Thu, 28 Jan 2010 12:17:53 +0100

<> 


The "Methods and Formulas" of -h ipolate- is quite explicit on the approach
that -ipolate- takes if it doesn`t find appropriate values for x on either
side:

***
clear*

inp int X Y
2001	546794340
2002	593576317
2003	524389625
2004	592850956
2005	691340900
2006	1149327295
2007	895638411
2008  .
2009  .
end

ipolate Y X, gen(E) epolate
format Y E %15.0fc
list, noo

di in r %15.0fc Y[7]-Y[6]
di in r %15.0fc Y[7]-253688832
di in r %15.0fc 641949568-253688832
***



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Marco Buur
Gesendet: Donnerstag, 28. Januar 2010 11:56
An: [email protected]
Betreff: st: epolate

I would like to do linear extrapolation for Y for 2008 and 2009 with

ipolate Y X, gen(E) epolate

 But I got odd results for 2008 and 2009!!  It is going rapidly down
specially 2009. Do I miss something?
	
X	Y
2001	546794340
2002	593576317
2003	524389625
2004	592850956
2005	691340900
2006	1149327295
2007	895638411
2008	641949504
2009	388260640

Thanks
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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