powered by
Assuming that the model is known, this program estimates the value of a missing data point. The whole data point is missing.
Vmiss(zt, piwgt, sigma, tmiss, cnst = NULL, output = T)
A T-by-k data matrix of a k-dimensional time series
The pi-weights of a VARMA model defined as piwgt=[pi0, pi1, pi2, ....]
Positive definite covariance matrix of the innovations
Time index of the missing data point
Constant term of the model
A logical switch to control output
Estimates of the missing values
Use the least squares method to estimate a missing data point. The missing is random.
Tsay (2014, Chapter 6). Multivariate Time Series Analysis with R and Financial Applications. John Wiley. Hoboken, NJ.
Vpmiss
# NOT RUN { data("mts-examples",package="MTS") gdp=log(qgdp[,3:5]) m1=VAR(gdp,3) piwgt=m1$Phi; Sig=m1$Sigma; cnst=m1$Ph0 m2=Vmiss(gdp,piwgt,Sig,50,cnst) # }
Run the code above in your browser using DataLab