powered by
Assuming that the data is only partially missing, this program estimates those missing values. The model is assumed to be known.
Vpmiss(zt, piwgt, sigma, tmiss, mdx, cnst = NULL, output = T)
A T-by-k data matrix of a k-dimensional time series
pi-weights of the model in the form piwgt[pi0, pi1, pi2, ....]
Residual covariance matrix
Time index of the partially missing data point
A k-dimensional indicator with "0" denoting missing component and ""1" denoting observed value.
Constant term of the model
values of the partially missing data
Estimates of the missing values
Tsay (2014, Chapter 6). Multivariate Time Series Analysis with R and Financial Applications. John Wiley. Hoboken, NJ.
Vmiss
# NOT RUN { #data("mts-examples",package="MTS") #gdp=log(qgdp[,3:5]) #m1=VAR(gdp,1) #piwgt=m1$Phi; cnst=m1$Ph0; Sig=m1$Sigma #mdx=c(0,1,1) #m2=Vpmiss(gdp,piwgt,Sig,50,mdx,cnst) # }
Run the code above in your browser using DataLab