27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

544 <strong>Syntax</strong> <strong>Reference</strong><br />

APPLY Subcommand<br />

APPLY allows you to use a previously defined EXSMOOTH model without having to repeat<br />

the specifications. For general rules on APPLY, see the APPLY subcommand on p. 1737.<br />

• The only specification on APPLY is the name of a previous model in quotes. If a model<br />

name is not specified, the model specified on the previous EXSMOOTH command is used.<br />

• To change one or more model specifications, specify the subcommands of only those portions<br />

you want to change after the APPLY subcommand.<br />

• If no series are specified on the command, the series that were originally specified with<br />

the model being reapplied are used.<br />

• To change the series used with the model, enter new series names before or after the<br />

APPLY subcommand. If a series name is specified before APPLY, the slash before the subcommand<br />

is required.<br />

• Initial values from the previous model’s INITIAL subcommand are applied unless you<br />

specify INITIAL = CALCULATE or a new set of initial values. Initial values from the original<br />

model are not applied if they were calculated by EXSMOOTH.<br />

• Seasonal factor estimates from the original model’s SEASFACT subcommand are not applied.<br />

To use seasonal factor estimates, you must respecify SEASFACT.<br />

Example<br />

EXSMOOTH VAR1<br />

/MODEL=NA<br />

/PERIOD=12<br />

/ALPHA=0.2<br />

/DELTA=0.2.<br />

EXSMOOTH APPLY<br />

/DELTA=0.3.<br />

EXSMOOTH VAR2<br />

/APPLY.<br />

• The first command uses a model with no trend but additive seasonality for series VAR1.<br />

The length of the season (PERIOD) is 12. A general smoothing parameter (ALPHA) and a<br />

seasonal smoothing parameter (DELTA) are used, both with values set equal to 0.2.<br />

• The second command applies the same model to the same series but changes the delta<br />

value to 0.3. Everything else stays the same.<br />

• The last command applies the model and parameter values used in the second EXSMOOTH<br />

command to series VAR2.<br />

Example<br />

EXSMOOTH VAR3<br />

/MOD=NA<br />

/ALPHA=0.20<br />

/DELTA=0.4<br />

/INITIAL=(114,20).<br />

EXSMOOTH VAR4<br />

/APPLY<br />

/INITIAL=CALCULATE.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!