Return a dictionary representation of the dataset.

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