When running mclustICL
(R
package mclust 5.3
) on data an error occurs:
data <- c(-0.485152666666667, -0.457841666666667, -0.457841666666667,
-0.457841666666667, -0.457841666666667, -0.457841666666667, -0.457841666666667,
-0.457841666666667)
> mclustICL(data, modelNames = "V")
fitting ...
|=======================================================================================================| 100%
Error in if (sum((out$parameters$pro - colMeans(out$z))^2) > sqrt(.Machine$double.eps)) { :
missing value where TRUE/FALSE needed
Rounding solves it:
> mclustICL(round(data,5), modelNames = "V") # no error
But I need to use function mclustICL
on other data examples, and then rounding not only doesnt help, but the function works only when I do not use round and throws the same error when i do:
data <- c(-0.241992333333333, -0.287035333333333, -0.33378, -0.272269333333333,
-0.241992333333333, -0.287035333333333, -0.241992333333333, -0.241992333333333,
-0.241992333333333, -0.287311, -0.287311, -0.287035333333333)
> mclustICL(data, modelNames = "V")# no error
> mclustICL(round(data,5), modelNames = "V")fitting ...
|=======================================================================================================| 100%
Error in if (sum((out$parameters$pro - colMeans(out$z))^2) > sqrt(.Machine$double.eps)) { :
missing value where TRUE/FALSE needed
What should I do to use the function on both data and why this behaviour happens? Thanks in advance!