**Have a Question?**

**Phone:** +1 (888) 427-9486

+1 (312) 257-3777

Contact Us

# AIRLINE_FIT

Returns an array of cells for the fitted values of the conditional mean.

## Syntax

**AIRLINE_FIT**(

**X**,

**Order**,

**mean**,

**sigma**,

**s**,

**theta**,

**theta2**,

**Type**)

**X**

is the univariate time series data (one dimensional array of cells (e.g. rows or columns)).

**Order**

is the time order in the data series (i.e. the first data point's corresponding date (earliest date=1 (default), latest date=0)).

Order | Description |
---|---|

1 | ascending (the first data point corresponds to the earliest date) (default) |

0 | descending (the first data point corresponds to the latest date) |

**mean**

is the model mean (i.e. mu).

**sigma**

is the standard deviation of the model's residuals/innovations.

**s**

is the length of seasonality (expressed in terms of lags, where s > 1).

**theta**

is the coefficient of non-seasonal MA component (see model description).

**theta2**

is the coefficient of seasoanl MA component (see model description).

**Type**

is an integer switch to select the output type: (1=Mean (default), 2=Volatility, 3=Raw Residuals, 4=Standardized Residuals)

Order | Description |
---|---|

1 | Fitted mean (default) |

2 | Fitted standard deviation or volatility |

3 | Raw (non-standardized) residuals |

4 | Standardized residuals |

## Remarks

- The underlying model is described here.
- The time series is homogeneous or equally spaced.
- The time series may include missing values (e.g. #N/A) at either end.
- The long-run mean argument (mean) can take any value or be omitted, in which case a zero value is assumed.
- The value of the residuals/innovations standard deviation (sigma) must be positive.
- The season length must be greater than one.
- The input argument for the non-seasonal MA parameter - theta - is optional and can be omitted, in which case no non-seasonal MA component is included.
- The input argument for the seasonal MA parameter - theta2 - is optional and can be omitted, in which case no seasonal MA component is included.
- The function was added in version 1.63 SHAMROCK.

## Files Examples

## References

- Hamilton, J .D.; Time Series Analysis , Princeton University Press (1994), ISBN 0-691-04289-6
- Tsay, Ruey S.; Analysis of Financial Time Series John Wiley & SONS. (2005), ISBN 0-471-690740