I have built a Bayesian Belief network using the bnlearn package. It consists of 40 factor variables with factor levels ranging from 2 to 16. I created a manual bayesian graph using modelstring() and when I try and run bn.fit on the bayesian model, I get this error "Error in minimal.table(data[, c(node, parents), drop = FALSE], with.missing = !all(data.info$complete.nodes[c(node, : attempting to create a table with more than INT_MAX cells" Is there a way to avoid this without removing any variables from my data-set?
I looked at INT_MAX value for my compiler and it is 2,147,483,647