Intervention Time-Series Model Using Transfer Functions: Xingwu Zhou & Nicola Orsini
Intervention Time-Series Model Using Transfer Functions: Xingwu Zhou & Nicola Orsini
transfer functions
Sept 1, 2017
Introduction Models and algorithm The tstf command Summary and future work
Introduction
I The method has been described by Box and Tiao (1975, JASA).
I Estimation, inference, and graphs will be given for both the original data
and the log-transformed data.
I RCT: Randomized controlled trials are considered the ideal approach for
assessing the effectiveness of interventions.
I RCT: Randomized controlled trials are considered the ideal approach for
assessing the effectiveness of interventions.
I RCT: Randomized controlled trials are considered the ideal approach for
assessing the effectiveness of interventions.
SRL
SRL continue
120
90
60
30
0
7
7
m
m
12
13
13
14
14
15
15
16
16
17
17
20
20
20
20
20
20
20
20
20
20
20
Calendar time
SRL continue
I There is a need to understand how this new policy will affect the
care-seeking behavior of Swedish tobacco users.
SRL continue
I There is a need to understand how this new policy will affect the
care-seeking behavior of Swedish tobacco users.
SRL continue
I There is a need to understand how this new policy will affect the
care-seeking behavior of Swedish tobacco users.
Stata package itsa analyses interrupted time series using segmented regression.
Yt = β0 + β1 T + β2 Xt + β3 XTt (1)
The intervention time series model (Box and Tiao, 1975, JASA) can be
expressed as:
Yt = Mt + Xt , (2)
where Yt represents the monthly (log) calling rate per 100,000 smokers;
The intervention time series model (Box and Tiao, 1975, JASA) can be
expressed as:
Yt = Mt + Xt , (2)
where Yt represents the monthly (log) calling rate per 100,000 smokers;
where B is the back-shift operator such that BXt = Xt−1 , d is the number of
trend differences, φp (B) and θq (B) are the polynomials in B of order p and q
Pp Pq
separately, that is φp (B) = 1 + i=1 φi B i , θq (B) = 1 − j=1 θj B j . If we
consider seasonality, Model (3) can be modified as
Transfer function
Two types of interventions: step and pulse interventions (Box and Tiao, 1975)
Compared to the calling rates that would have been observed in the absence of
intervention, the relative change in the calling rate k months after intervention
is a non-linear function of two parameters (ω, δ)
( k+1
exp(ω( 1−δ
1−δ
)) if k ≥ 0
RRk =
1 otherwise
ω
RR(ω, δ, k → large) = exp( 1−δ ) ”permanent or long term” effect after k
months;
ω
RR(ω, δ, k → large) = exp( 1−δ ) ”permanent or long term” effect after k
months;
The parameter δ provides information about how quickly the rate ratio
converges toward its long-term value. The cloest δ to 0, the quickest is the
convergence.
(2) Immediate (either positive or negative) and no further effect over time:
If δ = 0 the RRk = exp(ω)
Algorithm
Let θ = (θ10 , θ20 )0 , θ1 includes the parameters from the transfer function such
that θ1 = (δ, ω)0 ; and θ2 includes the parameters coming from the time series
models.
Syntax
Syntax
Syntax
Syntax
I Estimate the model through ML and get the common dynamic effect of
the intervention;
120
90
60
30
0
7
7
m
m
12
13
13
14
14
15
15
16
16
17
17
20
20
20
20
20
20
20
20
20
20
20
Calendar time
Output
Output
// Controlling the ARIMA and transfer parameters
tstf lograte after , arima (1 ,0 ,1) sarima (0 ,1 ,0 ,12) t (1 ,0) ///
method ( ML ) gre grd eform tabulate
Output, continue
// tabulate the confidence intervals
tstf lograte after , arima (3 ,1 ,2) sarima (1 ,0 ,0 ,12) t (1 ,0) ///
method ( ML ) eform tabulate
Output, continue
// graphs
tstf lograte after , arima (3 ,1 ,2) sarima (1 ,0 ,0 ,12) t (1 ,0) ///
method ( ML ) gre grd eform tabulate
110 1.50
100 1.45
1.40
90
1.35
80
1.30
exp(lograte)
exp(Effect)
70 1.25
1.20
60
1.15
50 1.10
1.05
40 1.00
2012m1 2014m1 2016m1 2018m1 2012m1 2014m1 2016m1 2018m1
time time
The calling rate gradually and significantly (p-value < 0.001) increased after
the introduction of the larger pictorial warnings on the cigarette packs.
Xingwu Zhou (PHS-KI) Nordic and Baltic Stata Users Meeting-17
24
Introduction Models and algorithm The tstf command Summary and future work
Summary
I We focus on the transfer functions with two parameters (shape and scale
parameter), the background is a seasonal time series model
I Estimation, inference, and graphs are given for both the original data and
the log-transformed data
Future work
I Power calculations
I Time-vary confounders
Team members
References