hasPeriodic: Does object include a periodic B-spline term?

Description Usage Arguments Value Examples

View source: R/hasPeriodic.R

Description

This method checks whether a 'FluMoDL' object includes a periodic B-spline term in its parametrization or not. By default FluMoDL objects are created with a periodic term, unless argument periodic in fitFluMoDL is set to FALSE

Usage

1

Arguments

x

An object of class FluMoDL

Value

TRUE if the model includes a periodic term, FALSE if it does not.

Examples

1
2
3
4
5
6
7
8
data(greece) # Use example surveillance data from Greece
m <- with(greece, fitFluMoDL(deaths = daily$deaths,
    temp = daily$temp, dates = daily$date,
    proxyH1 = weekly$ILI * weekly$ppH1,
    proxyH3 = weekly$ILI * weekly$ppH3,
    proxyB = weekly$ILI * weekly$ppB,
    yearweek = weekly$yearweek))
hasPeriodic(m)   # Returns TRUE

FluMoDL documentation built on Sept. 13, 2019, 5:10 p.m.