powered by
missls
missls substitutes missing values in a time series using the LS approach with ARMA models
missls(x, p = 0, tol = 0.001, theo = 0)
vector, the time series
integer, the order of polynom alpha(B)/beta(B)
tolerance that can be set; it enters via tol*sd(x,na.rm=TRUE)
(k,1)-vector, prespecified Inverse ACF, IACF (starting at lag 1)
y completed time series
# NOT RUN { data(HEARTBEAT) x <- HEARTBEAT x[c(20,21)] <- NA out <- missls(x,p=2,tol=0.001,theo=0) # }
Run the code above in your browser using DataLab