Learn R Programming

EpiNow2 (version 1.8.0)

$.estimate_secondary: Extract elements from estimate_secondary objects with deprecated warnings

Description

[Deprecated] Provides backward compatibility for the old return structure. The previous structure with predictions, posterior, and data elements is deprecated. Use the accessor methods instead:

  • predictions - use get_predictions(object)

  • posterior - use get_samples(object)

  • data - use object$observations

Usage

# S3 method for estimate_secondary
$(x, name)

Value

The requested element with a deprecation warning

Arguments

x

An estimate_secondary object

name

The name of the element to extract