get_h1_seasonality: Get Haiti 1 Seasonality

View source: R/get_h1_seasonality.R

get_h1_seasonalityR Documentation

Get Haiti 1 Seasonality

Description

This function takes as input a pomp representation of Model 1 that contains estimated parameter values, and returns a data.frame object with the estimated seasonality over time.

Usage

get_h1_seasonality(mod1, times = 431:800)

Arguments

mod1

a pomp object representing Model 1. It must contain parameters.

times

a vector containing the weeks that will be used to estimate the seasonality. By default, this is chosen as 431:800, which starts the week after available training data and covers at least the entirety of the following year. In this case, the linear trend in beta ends after the available training data.

Value

data.frame containing three columns: (1) week, which is week number corresponding to the measurement time (2) date, which is the date of the measurement and (3) trans_std, which contains the value of the Model 1 seasonality component.


zjiang2/haitipkg documentation built on March 1, 2024, 11:34 p.m.