**Have a Question?**

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

+1 (312) 257-3777

Contact Us

# TSM_CALIBRATE

Computes the maximum likelihood estimated (MLE) model's parameters.

## Syntax

**TSM_CALIBRATE**(

**Y**,

**X**,

**Order**,

**Model**,

**Mask**,

**Method**,

**maxIter**)

**Y**

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

**X**

is the exogenous factors time series data (a two dimensional array of cells (i.e. rows and columns)).

**Order**

is the time order of the data series (i.e. whether the first data point corresponds to the earliest or latest date (earliest date=1 (default), latest date=0)).

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

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

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

**Model**

is the model representation array (a one dimensional array of cells (e.g. rows or columns)) (see ARMA^{i}, GARCH^{i}, EGARCH^{i}, GARCHM, etc. functions).

**Mask**

is an array of 0's and 1's to specify which parameters to calibrate for. If missing, all parameters are included in the calibration.

**Method**

is the calibration/fitting method (1=MLE, 2=Bayesian). If missing, Maximum Likelihood Estimate (MLE) is assumed.

Method | Description |
---|---|

1 | Maximum Likelihood Estimate (MLE) |

2 | Bayesian (MCMC) |

**maxIter**

is the maximum number of iterations used to calibrate the model. If missing, the default maximum of 100 is assumed.

## Remarks

- The time series is homogeneous or equally spaced.
- The time series may include missing values (e.g. #N/A) at either end.
- The maximum likelihood estimation (MLE) is a statistical method for fitting a model to the data and provides estimates for the model's parameters.

## 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