I think we have to declare -gwhet2- the winner. Note that the d.f. are
different. You have 576 groups, so 575 is the correct d.f. The -hetgrot2-
I sent you is probably fixable (maybe the data just need sorting or
something) but -gwhet2- looks like a tidier program anyway. I haven't
tried Michael's variation, but it looks like it might have some additional
checks for missing data that would be worth incorporating into a final
program. Like I said in my last posting though, while these recent
variations are much better than the original -hetgrot-, I'm not sure any of
them are doing things exactly the way that Greene says it should be
done. Still, they may be close enough.