The code computes cluster means for all level-1 variables, sees if the means are roughly zero (< .0000001), and if yes then it assigns clustermeancentered = TRUE. This update changes the code to test whether the absolute value of the means are roughly zero, to address the case in which a cluster has a negative non-zero mean (that would otherwise mistakenly be assigned to clustermeancentered = TRUE because the negative number is less than 0.0000001).
The code computes cluster means for all level-1 variables, sees if the means are roughly zero (< .0000001), and if yes then it assigns
clustermeancentered = TRUE
. This update changes the code to test whether the absolute value of the means are roughly zero, to address the case in which a cluster has a negative non-zero mean (that would otherwise mistakenly be assigned toclustermeancentered = TRUE
because the negative number is less than 0.0000001).