R/dma.default.R

dma.default <-
function(x, y, models.which, lambda=0.99, gamma=0.99, 
 eps=.001/nrow(models.which), delay=0, initialperiod=200) {
    
    #run 
    est<-makf4(x, y, models.which, lambda, gamma,eps, delay, initialperiod)
    
    #define outputs
    est$fitted.values<-est$yhat.ma
    est$residuals<-y-est$yhat.ma
    
    #define as class to allow other commands later
    class(est)<-"dma"
    
    est
}

Try the dma package in your browser

Any scripts or data that you put into this service are public.

dma documentation built on May 2, 2019, 4:03 p.m.