forecast_starting: Forecast starting at given time

Description Usage Arguments Value

Description

Forecast starting at given time

Usage

1
2
3
forecast_starting(tree, last_time, week_start, year_start, formula, label,
  pred = 4, pref = TRUE, n = 1, include_trunc = T,
  thresh = 0.019)

Arguments

tree

A phylo object

last_time

The last sampling time in the tree

week_start

The week of first forecast timepoint

year_start

The year of first forecast timepoint

formula

The formula for BNPR forecast

label

A character string as label for the time series

pred

The number of weeks to forecast

pref

Whether using preferential sampling

n

The number of samples near the truncation time

include_trunc

Whether to include the truncation timepoint

thresh

Maximum distance from truncation time of the n samples

Value

A INLA object for forecast


Mamie/PILAF documentation built on May 8, 2019, 8:53 p.m.