Skip to contents

Generic to print a nowcaster object

Usage

# S3 method for class 'nowcaster'
print(x, ...)

Arguments

x

A nowcaster object generated by nowcast()

...

Additional arguments to pass to print (currently don't do anything)

Examples

# Load the data
data(denguedat)

# Run a nowcast with very few iterations
# change to method = "sampling" when working and remove the iter = 10 (or set to iter = 2000)
now   <- as.Date("1990-10-01")
ncast <- nowcast(denguedat, "onset_week", "report_week", now = now,
  method = "optimization", seed = 2495624, iter = 10)
print(ncast)
#> 
#> ── Nowcast for 1990-10-01 ──
#> 
#> • Column with `true_date` = "onset_week"
#> • Column with `report_date` = "report_week"
#> • units = "weeks"
#> 
#> ── Epidemic effects: 
#> The following effects are in place:
#>week_of_year
#> 
#> ── Delay effects: 
#> No temporal effects are considered
#> 
#> Use the `summary` function to obtain the summary of predictions or `plot` to
#> generate an image
#>