Hello there,
We have run into a strange error. We have a large dataset where we compute 25 different scores and then the mean of those scores for each case. Each case where the mean score is over 0.5 is considered to have met the standard and we report out the percentage who met the standard overall, and for various subgroups. We expected this to be really straightforward, but something is happening. The calculation of whether a case met the standard--which is simply a test of greater than or equal to--is failing. For a small percentage of cases, the mean score is equal to the cutoff value, but the MetStandard variable is being assigned 0 and we do not understand why.
I am attaching a dataset for illustration purposes, in case that helps. It has 2500 cases. Each case has up to 25 scores (Scale1 through Scale25) that range from 0.2 to 1.0. The mean score and the variable indicating whether or not the variable met the standard are assigned as follows:
COMPUTE MeanScale=Mean(Scale1, Scale2, Scale3, Scale4, Scale5, Scale6, Scale7, Scale8, Scale9,
Scale10, Scale11, Scale12, Scale13, Scale14, Scale15, Scale16, Scale17, Scale18, Scale19, Scale20,
Scale21, Scale22, Scale23, Scale24, Scale25).
COMPUTE MetStandard=MeanScale >= 0.5.
There are 9 cases where MeanScale is 0.5, but MetStandard was assigned 0. I noticed that rounding the MeanScale before doing the comparison seems to resolve this problem (at least in this particular dataset, though I do not know why that should matter given the cases with issue were exactly 0.5). Is there some underlying limitation that I should be aware of that explains this? Are there other problems that issue can cause?
Thank you for any guidance!
------------------------------
A. R. Afework
------------------------------