Closed heinonmatti closed 4 years ago
Update: in some use cases, I managed to circumvent the error by setting maxDim to a small number, such as maxDim = 5
Oops sorry, accidentally closed....
Update:
In version 0.1.5, casnet::est_parameters
automatically adjusts the maxDim for short series.
E.g. this works; it adjusts dimension to 2.
testData <- c(35, 42, 26, 44, 41, 15, 31, 24, 41, 11, 26,
38, 41, 32, 49, 43, 39, 39, 41, 32, 49, 25,
41, 33, 49, 39, 26, 44, 49, 42, 36, 26, 34,
42, 26, 25, 29, 30, 30, 31, 28, 20, 21, 28, 11)
casnet::est_parameters(y = testData, maxDim = 3)
Changed value of maxDim to 2
But when original maxDim is 9-14, it somehow doesn't:
casnet::est_parameters(y = testData, maxDim = 9)
Error in data.frame(Nn.pct = as.numeric(fnnSeries[1, ]), Nsize = nnSizes[N], : object 'fnnSeries' not found
For 15, it works again:
casnet::est_parameters(y = testData, maxDim = 15)
Changed value of maxDim to 12 Only 2 lags to evaluate, setting 'first.minimum' to 1
Had this earlier with real data, but now also with the logistic map:
So far, so good. For 103 (or more) values it works:
For 102 (or less) it doesn't any more:
In real data, I have some variables of length 67 for which it works, and others for which it doesn't.
This works:
casnet::crqa_parameters(c(46, 42.66667, 41, 42.75, 42.6, 43.33333, 39.5, 44, 41.25, 40.33333, 30.5, 35, 38.66667, 40.75, 40.75, 38.66667, 38.5, 42, 30, 38.5, 39.5, 35.33333, 36.5, 42.5, 29.5, 34.8, 42, 45.33333, 34.66667, 41.66667, 42.5, 42, 45.5, 43.6, 37.5, 44, 44.25, 41, 37.25, 43, 45, 41.4, 43, 44, 41, 41.25, 43.66667, 43.8, 43.8, 44.8, 42, 44, 44.25, 43.5, 6.5, 44, 39.75, 37.66667, 34.5, 35.66667, 44.25, 42.75, 44, 28.33333, 43, 42, 45))
This doesn't:
casnet::crqa_parameters(c(47.8, 45, 43, 43, 39, 45, 35.66667, 24, 19.5, 47.33333, 48, 45, 40, 33.25, 33.25, 29.33333, 45.75, 48, 32.5, 44, 39.5, 39.33333, 42.25, 48.5, 48.5, 45.2, 41.5, 48.33333, 47.83333, 41, 48, 15, 48, 48.4, 47.33333, 39, 37, 49, 48.5, 49, 47.75, 41, 48, 28.5, 21, 45, 48.33333, 48.6, 45, 46, 47.2, 48.5, 48.75, 21, 44.5, 47, 47.25, 48, 42.25, 48.66667, 48.5, 48, 40.33333, 43.33333, 48.25, 48.33333, 48))