def chi_squareds(self, p=None):
if len(self._set_xdata)==<NUM_LIT:0> or len(self._set_ydata)==<NUM_LIT:0>: return None<EOL>if p is None: p = self.results[<NUM_LIT:0>]<EOL>rs = self.studentized_residuals(p)<EOL>if rs == None: return None<EOL>cs = []<EOL>for r in rs: cs.append(sum(r**<NUM_LIT:2>))<EOL>return cs<EOL>
Returns a list of chi squared for each data set. Also uses ydata_massaged.

p=None means use the fit results