Hello,
I have a question on how to extrapolate the series both backward and forward in Stata. I am working with the following data:
I have data on the return on stocks (ret_st) from 1995 up to 2008. However, I have no data on the return for the earlier/later period. What I am trying to do is use (const+ coeff * eq_dp) to extrapolate the rates but I do not know if this can be done using ipolate?
Thank you in advance for your help.
I have a question on how to extrapolate the series both backward and forward in Stata. I am working with the following data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input double(year eq_dp ret_st) 1968 3.200000151991844 . 1969 3.9000000804662704 . 1970 4.399999976158142 . 1971 3.2999999821186066 . 1972 3.200000151991844 . 1973 4.800000041723251 . 1974 11.699999868869781 . 1975 5.499999970197678 . 1976 6.400000303983688 . 1977 5.299999937415123 . 1978 5.799999833106995 . 1979 6.89999982714653 . 1980 6.1000000685453415 . 1981 5.900000035762787 . 1982 5.299999937415123 . 1983 4.600000008940697 . 1984 4.399999976158142 . 1985 4.30000014603138 . 1986 3.999999910593033 . 1987 4.30000014603138 . 1988 4.699999839067459 . 1989 4.1999999433755875 . 1990 5.499999970197678 . 1991 5.000000074505806 . 1992 4.399999976158142 . 1993 3.400000184774399 . 1994 3.999999910593033 . 1995 3.799999877810478 2.9 1996 3.700000047683716 2.9 1997 3.200000151991844 2.6 1999 2.0999999716877937 1.87 2001 2.6000000536441803 1.99 2002 3.5999998450279236 2.62 2004 3.099999949336052 2.53 2005 2.9999999329447746 2.47 2006 2.8999999165534973 2.45 2007 2.9999999329447746 2.49 2008 4.500000178813934 3.63 2009 3.200000151991844 . 2010 2.8999999165534973 . 2011 3.500000014901161 . 2012 3.5999998450279236 . 2013 3.2999999821186066 . 2014 3.400000184774399 . 2015 3.700000047683716 . 2016 . . 2017 . . 2018 . . 2019 . . end
Thank you in advance for your help.
Comment