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

530 Views
Highlighted
Visitor
Posts: 1
Registered: ‎03-15-2017

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)

Attachment