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