Dear David, I'm encountering issues with the transfer entropy function, more specifically with the bootstrap. When I execute the function, I get the following response:
Error in sample.int(length(x), size, replace, prob) :
invalid first argument
I did some tests and found that I get this error when I increase the number of lags to above 4. Another test showed that if I reduce the number of bootstraps to below 6, the function is able to execute.
Dear David, I'm encountering issues with the transfer entropy function, more specifically with the bootstrap. When I execute the function, I get the following response:
Error in sample.int(length(x), size, replace, prob) : invalid first argument
This same error was reported on StackOverflow (https://stackoverflow.com/questions/71013871/rtransferentropy-error-in-sample-intlengthx-size-replace-prob-invalid) and marked as resolved in issue #58 (https://github.com/BZPaper/RTransferEntropy/issues/58).
I did some tests and found that I get this error when I increase the number of lags to above 4. Another test showed that if I reduce the number of bootstraps to below 6, the function is able to execute.
The reproducible example is below.
Thank you for the help. Jorge Antunes