Provides backward compatibility for the old return structure. The previous
structure with
samples and summarised elements is deprecated.
Use the accessor methods instead:
samples - use get_samples(object)
summarised - use summary(object, type = "parameters")
# S3 method for estimate_infections
$(x, name)The requested element with a deprecation warning for deprecated elements
An estimate_infections object
The name of the element to extract