Skip to content

TSMODEL

Builds time series models: exponential smoothing, ARIMA and transfer functions, chosen automatically by the Expert Modeler or specified, with outlier detection and forecasts.

TSMODEL dep [dep …] [WITH predictors] [/METHOD=EXPERT|EXSMOOTH|ARIMA] [/EXPERT=ALL|EXSMOOTH|ARIMA]
[/EXSMOOTH TYPE=SIMPLE|HOLT|DAMPED|SIMPLESEASONAL|WINTERSADDITIVE|WINTERSMULTIPLICATIVE]
[/ARIMA AR=p DIFF=d MA=q SAR=P SDIFF=D SMA=Q CONSTANT=YES|NO] [/PERIOD=s] [/OUTLIER DETECT=YES|NO]
[/FORECAST=h] [/CRITERIA=CI(95)] [/PRINT=PARAMETERS FIT FORECAST] [/PLOT=SERIES RESIDACF NONE]
[/SAVE=PREDICTED LCL UCL NRESID] [/MODEL NAME=label [FILE='model.json']].
Kind Procedure (reads data, produces output)
Body main /SUBCOMMAND[=] …
Changes data no
Subcommands /ARIMA, /CRITERIA, /EXPERT, /EXSMOOTH, /FORECAST, /METHOD, /MODEL, /OUTLIER, /PERIOD, /PLOT, /PRINT, /REESTIMATE, /SAVE
Menu Analyze ▸ Forecasting
Slot: Dependent variables 1+ variable(s); levels: scale; types: numeric
Slot: Independent variables 0+ variable(s); levels: scale, ordinal, nominal; types: numeric
  • METHOD: EXPERT (default) tries exponential smoothing and a stepwise ARIMA search and keeps the lowest normalized BIC
  • ARIMA: non-seasonal and seasonal orders; CONSTANT adds a mean (drift after one difference)
  • OUTLIER: DETECT=YES finds additive outliers and level shifts in ARIMA models
  • FORECAST: periods beyond the last case (default 12) when the dependent has no trailing missing values; trailing cases with a missing dependent are always forecast
  • MODEL: keeps the fitted models for TSAPPLY under NAME and/or writes them to a JSON FILE
TSMODEL sales /OUTLIER DETECT=YES /FORECAST=12 /PLOT=SERIES.
TSMODEL sales /METHOD=EXSMOOTH /EXSMOOTH TYPE=WINTERSMULTIPLICATIVE /SAVE=PREDICTED LCL UCL.
TSMODEL demand WITH price promo /METHOD=ARIMA /ARIMA AR=1 DIFF=1 MA=1 /MODEL NAME=demand_m.
  • Missing values inside a series are an error; leading missing values are skipped.
  • Predictors need values in the forecast periods (cases after the last observed dependent value).
  • Case weights are ignored.

TSAPPLY, DATE, ACF, SEASON, VAR


Generated from OrcStat’s command registry and reference. To suggest a change, open an issue.