SteffenMoritz/kssa

results_kssa function error few positive probabilities

Opened this issue · 0 comments

I'm working with air pollution time series data and when trying to compare methods for imputing missing data I'm getting this error:
results_kssa <- kssa(tscoy, start_methods = "all", actual_methods = "all", segments = 12, iterations = 10, percentmd = 0.1369863)
Error in sample.int(length(x), size, replace, prob) :
too few positive probabilities

my data has 13% missing data and I'm working with daily data, so I selected 12 segments which may relate to 12 months of data (analysing 1 month segments)

Looking forward to find a solution to this! Cheers