Learn R Programming

tsapp (version 1.0.4)

missar: missar Substitution of missing values in a time series by conditional exspectations of AR(p) models

Description

missar Substitution of missing values in a time series by conditional exspectations of AR(p) models

Usage

missar(x, p, iterout = 0)

Arguments

x

vector, the time series

p

integer, the maximal order of ar polynom 0 < p < 18,

iterout

if = 1, iteration history is printed

Value

out list with elements

a

(p,p)-matrix, estimated ar coefficients for ar-models

y

(n,1)-vector, completed time series

iterhist

matrix, NULL or the iteration history

Examples

Run this code
# NOT RUN {
data(HEARTBEAT)
x <- HEARTBEAT
x[c(20,21)] <- NA
out <- missar(x,2)
# }

Run the code above in your browser using DataLab