When X, Y, and Z (matrix u) are all Gaussian, and when the dimension of Z is 10, the function discretizeMutual() gives error; when the dimension of U is 5, it is fine. Screen shot can be found below.
Info: R version 4.2.1; Ubuntu 20.04.1
Thanks for the help!
Code:
`rm(list = ls())
n = 1000
dz = 10
x = rnorm(n, 0, 1)
y = rnorm(n, 0, 1)
z = matrix(rep(0, n * dz), ncol = dz)
for(i in 1:dz){
z[,i] = rnorm(n, 0, 1)
}
res = discretizeMutual(X = x, Y = y, matrix_u = z, plot=F)`
Thank for raising this issue.
From you example, we have been able to reproduce the problem and classify it as a bug.
More investigation will be needed from our side to identify the causis and generate a fix
When X, Y, and Z (matrix u) are all Gaussian, and when the dimension of Z is 10, the function discretizeMutual() gives error; when the dimension of U is 5, it is fine. Screen shot can be found below.
Info: R version 4.2.1; Ubuntu 20.04.1
Thanks for the help!
Code: `rm(list = ls()) n = 1000 dz = 10
x = rnorm(n, 0, 1) y = rnorm(n, 0, 1) z = matrix(rep(0, n * dz), ncol = dz) for(i in 1:dz){ z[,i] = rnorm(n, 0, 1) }
res = discretizeMutual(X = x, Y = y, matrix_u = z, plot=F)`