part2: part2 - prediction

Description Usage Arguments Details Value Author(s)

View source: R/paula.R

Description

make predictions from dynamic model

Usage

1
2
part2(model, dataset, formula, npredict = 28, nsims = 1000, nmax = 60,
  quantiles = c(0.5, 0.95, 0.99))

Arguments

model

returned from part1

dataset

data frame with day and count columns

formula

of the form count~date

npredict

number of days ahead to predict

nsims

number of simulations

Details

given a model from part1, and a dataset, extend that dataset and predict for those new days by simulation

Value

means and confidence intervals

Author(s)

Barry S Rowlingson


spacedman/hospitr documentation built on May 30, 2019, 6:34 a.m.