Next Page Previous Page Home Tools & Aids Search Handbook
Dataplot Commands for Aerosol Particle Size Data
Invoke Dataplot, set defaults, read data
.
.  Starting Negiz4 ARIMA Case Study
.
. Setting Dataplot defaults
reset data
reset plot control
erase
x3label automatic
label case asis
dimension 100 variables
.  Finished Setting Defaults
.
. Starting Step 1.1
.
SKIP 0
SET READ FORMAT 3E16.4
read NEGIZ4.DAT junk1 junk2 y
set read format
delete junk1 junk2
. Finished Step 1.1: Page Back for Output
Run Sequence Plot of the Original Data
.
. Starting Step 2.1 - Generate a run sequence plot
.
y1label width
x1label sequence
run sequence plot y
Autocorrelation Plot of the Original Data
.
. Starting Step 2.2 - Generate an autocorrelation plot (original data)
.
x3label Autocorrelation Plot of the Original Data
y1label Autocorrelation
x1label Lag
set autocorrelation band plot box-jenkins
set autocorrelation lag zero off
xtic offset 1 1
xlimits 0 50
line blank solid solid solid blank blank
line color black black blue blue
spike on
autocorrelation plot y
xtic offset 0 0
xlimits
line solid all
line color black all
spike off
line color blue
draw 45 85 50 85
justification left
move 51 84
text 95% Confidence Band
line color black
. Finished Step 2.2: Page Back for Output
Run Sequence Plot of the Differenced Data
.
. Starting Step 2.3 - Generate a run sequence plot of differenced data
.
let ydiff = sequential difference y
x3label Run Sequence Plot of the Differenced Data
y1label width
x1label sequence
run sequence plot ydiff
.  Finished Step 2.3: Page Back for Output
Autocorrelation Plot of the Differenced Data
.
. Starting Step 2.4 - Generate an autocorrelation plot (differenced data)
.
let ydiff = sequential difference y
x3label Autocorrelation Plot of the Differenced Data
y1label Autocorrelation
x1label Lag
set autocorrelation band plot box-jenkins
set autocorrelation lag zero off
xtic offset 1 1
xlimits 0 50
line blank solid solid solid blank blank
line color black black blue blue
spike on
autocorrelation plot ydiff
xtic offset 0 0
xlimits
line solid all
line color black all
spike off
line color blue
draw 45 85 50 85
justification left
move 51 84
text 95% Confidence Band
line color black
. Finished Step 2.2: Page Back for Output
Partial Autocorrelation Plot of the Differenced Data
.
. Starting Step 2.5 - Generate a partial autocorrelation plot
.
let ydiff = sequential difference y
y1label Partial Autocorrelation
x1label Lag
x3label Partial Autocorrelation Plot of the Differenced Data
xtic offset 1 1
xlimits 0 50
spike on
set autocorrelation lag zero off
line blank solid solid solid blank blank
line color black black blue blue
partial autocorrelation plot ydiff
xtic offset 0 0
xlimits
line solid all
line color black all
spike off
line color blue
draw 45 85 50 85
justification left
move 51 84
text 95% Confidence Band
line color black
. Finished Step 2.5: Page Back for Output
ARMA Fit of ARIMA(2,1,0) Model
.
. Starting Step 3.1 - Fit ARIMA(2,1,0) model
.
arma y 2 1 0
. Finished Step 3.1: Page Back for Output
ARMA Fit of ARIMA(0,1,1) Model
.
. Starting Step 3.2 - Fit ARIMA(0,1,1) model
.
arma y 0 1 1
. Finished Step 3.2: Page Back for Output
4-Plot of Residuals from the ARIMA(2,1,0) Model
.
. Starting Step 4.1 - 4-Plot of Residuals
.
arma y 2 1 0
y1label
x1label
x3label
4-plot res
. Finished Step 4.1: Page Back for Output
Autocorrelation Plot of Residuals from the ARIMA(2,1,0) Model
.
. Starting Step 4.2 - Generate an autocorrelation plot of residuals
.                     from ARIMA(2,1,0) model
.
arma y 2 1 0
x3label Autocorrelation Plot of the Residuals from ARIMA(2,1,0) Model
y1label Autocorrelation
x1label Lag
set autocorrelation plot band white noise
set autocorrelation lag zero off
xtic offset 1 1
xlimits 0 50
line blank solid solid solid blank blank
line color black black blue blue
spike on
autocorrelation plot res
xtic offset 0 0
xlimits
line solid all
line color black all
spike off
line color blue
draw 45 85 50 85
justification left
move 51 84
text 95% Confidence Band
line color black
. Finished Step 4.2: Page Back for Output
Ljung-Box Test of Residuals from the ARIMA(2,1,0) Model
.
. Starting Step 4.3 - Lujan-Box test for independence
.
arma y 2 1 0
let numlag = 25
capture lujan1.out
ljung-box test res
end of capture
delete numlag
. Finished Step 4.3: Page Back for Output
4-Plot of Residuals from the ARIMA(0,1,1) Model
.
. Starting Step 4.4 - 4-Plot of Residuals
.
arma y 0 1 1
y1label
x1label
x3label
4-plot res
. Finished Step 4.4: Page Back for Output
Autocorrelation Plot of Residuals from the ARIMA(0,1,1) Model
.
. Starting Step 4.5 - Generate an autocorrelation plot of residuals
.                     from ARIMA(0,1,1) model
.
arma y 0 1 1
x3label Autocorrelation Plot of the Residuals from ARIMA(0,1,1) Model
y1label Autocorrelation
x1label Lag
set autocorrelation plot band white noise
set autocorrelation lag zero off
xtic offset 1 1
xlimits 0 50
line blank solid solid solid blank blank
line color black black blue blue
spike on
autocorrelation plot res
xtic offset 0 0
xlimits
line solid all
line color black all
spike off
line color blue
draw 45 85 50 85
justification left
move 51 84
text 95% Confidence Band
line color black
. Finished Step 4.5: Page Back for Output
Ljung-Box Test of Residuals from the ARIMA(0,1,1) Model
.
. Starting Step 4.6 - Lujan-Box test for independence
.
arma y 0 1 1
let numlag = 25
capture lujan2.out
ljung-box test res
end of capture
delete numlag
. Finished Step 4.6: Page Back for Output
Home Tools & Aids Search Handbook Previous Page Next Page