Learn R Programming

tscount (version 1.4.3)

campy: Campylobacter Infections Time Series

Description

Time series with the number of cases of campylobacter infections in the north of the province Quebec (Canada) in four week intervals from January 1990 to the end of October 2000. It has 13 observations per year and 140 observations in total. Campylobacterosis is an acute bacterial infectious disease attacking the digestive system.

Usage

campy

Arguments

Format

A time series of class "ts".

See Also

ecoli, ehec, influenza, measles in this package, polio in package gamlss.data

Examples

Run this code
# NOT RUN {
plot(campy)

#Fit the INGARCH model used in Ferland et al. (2006):
campyfit <- tsglm(ts=campy, model=list(past_obs=1, past_mean=c(7,13)))
summary(campyfit)
plot(campyfit)
#Note that these parameter estimations differ from those obtained by
#Ferland et al. (2006). This might be due to a different initialisation
#of pre-sample values and different optimisation algorithms (they use
#Microsoft Excel Solver Macro). 
# }

Run the code above in your browser using DataLab