extendData: Generate extended covariate matrix

Description Usage Arguments Details Value Author(s)

View source: R/paula.R

Description

Extend a data set for prediction

Usage

1
extendData(dataset, formula, npredict)

Arguments

dataset

input data set

formula

of the form count~date

npredict

number of extra rows to add on

Details

given a time-count dataset, return the covariate matrix with added observations after the last one with NA as observed value

Value

a data frame of covariates for the model

Author(s)

Barry S Rowlingson


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