Download RATS Programming Manual, By Walter Enders

Transcript
28 Walter Enders
p
p
i =1
i =1
yt = α 0 + ∑ α i yt −i + θ ( β 0 + ∑ βi yt −i ) + ε t
where: θ = [1+ exp ( -γ yt −1 ) ]−1 DQG!LVDVFDOHSDUDPHWHU
In the limit, as γ → 0 or ∞, the LSTAR model becomes an AR(p) model since each value of is constant. As yt-1 → - ∞, → 0 so that the behavior of yt is given by α0 + α1yt-1 + … + αpyt-p
+ εt. Similarly, as yt-1 → + ∞, → 1 so that the behavior of yt is given by (α0 + β0) + (α1 + β1)
yt-1 + … + (αp + βp) yt-p + εt. For intermediate values of γ, the degree of autoregressive decay
depends on the value of yt-1.
You can see the effects of γ using Program 1.3 on the file CHAPTER1.PRG. Since we are not
interested in using calendar dates, we omit the CAL instruction. The first instruction sets the
default length of a series to 101 entries. The second instruction creates the series y; since t
runs from 1 to 101, y runs from –5.0 to +5.0. Each of the next four SET instructions creates a
series representing as a function of γyt for γ = 0.5, 1, 2.0 and 5.0.
all 101
set y = -5.1 + 0.1*t
set theta1 = (1 + exp(-0.5*y))**-1
set theta2 = (1 + exp(-y))**-1
set theta3 = (1 + exp(-2*y))**-1
set theta4 = (1 + exp(-5*y))**-1
The remainder of the program creates a scatter diagram of the various functions of Note
that γ acts as a smoothness parameter; for yt near zero, movements in yt have small effects on
when γ is small.
com labels = || ' 0.5' , '1.0', '2.0', '5.0,' ||
scatter(header='Effects
of
Theta',style=lines,patterns,klabels=labels,key=below, $
vlabel='THETA',hlabel='GAMMA') 4
# y theta1 ; # y theta2 ; # y theta3 ; # y theta4
Gamma
on