黃河泉 发表于 2019-12-10 17:19 
请重述你的问题?也请附上相关资料!
以下是简化的1970-1979年三个国家的某一比例ratio,想请教下如何做出类似图片中散点图和增长趋势线的复合图~求完整的程序步骤,感谢!!!
clear
input int year double ratio
1970 64.786
1971 65.231
1972 65.356
1973 64.893
1974 65.427
1975 65.519
1976 65.427
1977 65.603
1978 65.955
1979 65.806
1970 58.959
1971 59.996
1972 61.396
1973 62.653
1974 64.829
1975 66.228
1976 65.905
1977 65.227
1978 64.528
1979 63.487
1970 53.175
1971 53.431
1972 53.249
1973 53.631
1974 55.501
1975 56.442
1976 56.808
1977 57.875
1978 57.155
1979 57.026
end
[/CODE]
------------------ copy up to and including the previous line ------------------
Listed 30 out of 30 observations
. xtset ratio year
panel variable: ratio (weakly balanced)
time variable: year, 1970 to 1979
delta: 1 unit
. tsfilter hp ratio_hp = ratio, smooth(6.25)
note: insufficient observations for panel 1