code: def to_dict(self):
          
          d = dict(doses=self.doses, ns=self.ns, means=self.means, stdevs=self.stdevs)
          d.update(self.kwargs)
          return d
docs: Return a dictionary representation of the dataset.