fixed bug in gradient of multiple group WLS estimator (n-1 issue), resulting in nonconvergence when sample sizes were small and unequal