I'd like to (try) and study the effect of a policy on maternal mortality from abortions. The policy begins in 1966, but I only have data dating back to 1969, unfortunately. However, I have data from 1969-2019, so my idea is to linearly/quadratically interpolate the missing values dating back to 1955, at least.
My question is this: how do I, by panel, extend the time series for each unit back to the year 1955? Here is a subsample of my current dataset
Presumably, tsfill or tsappend would be ideal for this situation?
My question is this: how do I, by panel, extend the time series for each unit back to the year 1955? Here is a subsample of my current dataset
Code:
* Example generated by -dataex-. For more info, type help dataex clear input int year float(mmr id) 1987 15.06 1 1988 19.96 1 1989 24.09 1 1969 32.13 2 1970 24.93 2 1971 30.41 2 1972 24.03 2 1973 22.44 2 1974 18.47 2 1975 17.07 2 1976 21.73 2 1977 18.69 2 1978 15.22 2 1979 12.73 2 1980 3.3 2 1981 0 2 1982 6.33 2 1983 3.33 2 1984 1.12 2 1985 2.29 2 1986 1.15 2 1987 0 2 1988 0 2 1989 1.13 2 1969 20.45 3 1970 20.4 3 1971 20.49 3 1972 13.21 3 1973 12.36 3 1974 16.98 3 1975 12.58 3 1976 5.79 3 1977 10.67 3 1978 13.12 3 1979 .81 3 1980 .8 3 1981 1.62 3 1982 0 3 1983 0 3 1984 .86 3 1985 1.75 3 1986 .85 3 1987 0 3 1988 2.5 3 1989 0 3 1969 33.55 4 1970 44.69 4 1971 33.23 4 1972 29.7 4 1973 34.36 4 1974 29.49 4 1975 27.65 4 1976 23.45 4 1977 34.51 4 1978 27.85 4 1979 15.33 4 1980 6.24 4 1981 6.43 4 1982 4.83 4 1983 7.32 4 1984 4.91 4 1985 3.32 4 1986 10.83 4 1987 7.71 4 1988 2.55 4 1989 5.34 4 1985 8.25 5 1986 7.02 5 1987 4.23 5 1988 1.41 5 1989 7.48 5 1986 4.5 6 1987 1.53 6 1988 1.51 6 1989 1.56 6 1981 8.72 7 1982 8.65 7 1985 4.23 7 1986 4.15 7 1987 11.96 7 1985 0 8 1986 3.32 8 1987 0 8 1988 0 8 1989 3.59 8 1969 53.79 9 1970 42.16 9 1971 35.18 9 1972 43.06 9 1973 37.77 9 1974 38.11 9 1975 26.8 9 1976 18.34 9 1977 19.71 9 1978 21.41 9 1979 3.74 9 1980 5.38 9 1981 2.8 9 1982 9.73 9 1983 2.36 9 end format %ty year label values id country label def country 1 "ALB", modify label def country 2 "AUT", modify label def country 3 "BEL", modify label def country 4 "BGR", modify label def country 5 "BIH", modify label def country 6 "CZE", modify label def country 7 "EST", modify label def country 8 "HRV", modify label def country 9 "HUN", modify cls xtset id year, y
Comment