Skip to content
Prev 327089 / 398502 Next

restrected arima models

On 18/07/2013 16:14, george wrote:
Yes.
Have you read the help page?  Someone helped you by writing it (and 
indeed, by providing the facility, which few ARIMA-fitting programs have).

    fixed: optional numeric vector of the same length as the total
           number of parameters.  If supplied, only ?NA? entries in
           ?fixed? will be varied.  ?transform.pars = TRUE? will be
           overridden (with a warning) if any AR parameters are fixed.

E.g.

x <- rnorm(100)
arima(x, order=c(6,0,0), fixed = c(0,0,0,NA,NA,NA,NA))

Coefficients:
       ar1  ar2  ar3     ar4     ar5     ar6  intercept
         0    0    0  0.0423  0.0977  0.1299    -0.1462
s.e.    0    0    0  0.1065  0.1075  0.1059     0.1323