powered by
missar
missar Substitution of missing values in a time series by conditional exspectations of AR(p) models
missar(x, p, iterout = 0)
vector, the time series
integer, the maximal order of ar polynom 0 < p < 18,
if = 1, iteration history is printed
out list with elements
(p,p)-matrix, estimated ar coefficients for ar-models
(n,1)-vector, completed time series
matrix, NULL or the iteration history
# NOT RUN { data(HEARTBEAT) x <- HEARTBEAT x[c(20,21)] <- NA out <- missar(x,2) # }
Run the code above in your browser using DataLab