estimation | R Documentation |
Estimates the parameters of a time series for given orders p
and q
estimation(p = NULL, q = NULL, y, meanparam = FALSE)
p |
Order of AR, if |
q |
Order of MA, if |
y |
Univariate time series. |
meanparam |
Logical argument if the mean parameter has to be computed or not. If FALSE μ is not computed. |
This function uses the algorithm BFGS in the function optim to minimize our objective function meansq
.
List of estimate coefficients:
mu
Mean parameter
.
ar
Vector of AR coefficients with length is equal to p
.
ma
Vector of MA coefficients with length is equal to q
.
sigma.carre
Mean square residuals.
Francq, C. and Zakoïan, J. 1998, Estimating linear representations of nonlinear processes Journal of Statistical Planning and Inference, vol. 68, no. 1, pp. 145-165.
y<-sim.ARMA(1000,ar = c(0.9,-0.3), ma = 0.2, method = "product") estimation(p = 2, q = 1, y = y) estimation(p = 1, q = 1, y = CAC40return.sq, meanparam = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.