Distribution of NAs in Timeseries (impute TS) Work good with very large Data

1184 Views
Highlighted

Distribution of NAs in Timeseries (impute TS) Work good with very large Data

library("zoo")
library("imputeTS")
library(tseries)

mydata =dataset[ ,1] #Values

#mydata<-na.approx(mydata)  #For Testing: should be all Green if NAs are interlpolated
mydataseries<-ts(mydata) #Values,Dates


plotNA.distributionBar(mydata, breaks = nclass.Sturges(mydata), breaksize = NULL,
percentage = TRUE, legend = TRUE, axis = TRUE, space = 0,
col = c("indianred2", "green2"), main = "Distribution of NAs",
xlab = "Time Lapse", ylab = NULL)