This package computes a local linear trend and a quadratic trend The local linear trend is computed as mut = at + l bt being l the forecasting period, at = 2s1t - s2t bt = [delta/(1-delta)]*(s1t-s2t) s1t : simple exponentially weighted moving average of yt (the dependent variable), with initial value = yt[1] s2t : simple exponentially weighted moving average of s1t, with initial value = s1t[1] delta: the smoothness parameter The quadratic trend is computed as: mut=at + l bt + l^2 ct being l the forecasting period, at = 3 s1t - 3 s2t + s3t bt = [delta/2(1-delta)^2] * [(6-5*delta)s1t-(10-8*delta)s2t+(4-3*delta)s3t] ct = [delta^2/2(1-delta)^2]*(s1t-2*s2t+s3t) delta, s1t and s2t as before and s3t : simple exponentially weighted moving average of s2t, with initial value = s2t[1] Note: if you run 'dataset addobs +4' before running this package you will obtain 4 point forecasts of your trend Reference: Econometría. Series temporales y Predicción (1993) Jose M. Otero. (Ed: AC, madrid)