GNagaro / bayesian-k2-R

A university project about the K2 algorithm, coded in R.
0 stars 1 forks source link

missing value where TRUE/FALSE needed #1

Open agcgit opened 2 years ago

agcgit commented 2 years ago

Hi I tried to use the k2 function on my dataset.

getting the error

Error in if (candidate.score > P_new) { : missing value where TRUE/FALSE needed

my data are all binary (1,0)

agcgit commented 2 years ago

This error seem to be Coming from the f function with the factorial operation In R, factorial(large number>171) =inf