Package: season 0.3.16.9000

season: Seasonal Analysis of Health Data

Routines for the seasonal analysis of health data, including regression models, time-stratified case-crossover, plotting functions and residual checks, see Barnett and Dobson (2010) ISBN 978-3-642-10748-1. Thanks to Yuming Guo for checking the case-crossover code.

Authors:Adrian Barnett [aut, cre], Peter Baker [aut], Nicholas Tierney [aut]

season_0.3.16.9000.tar.gz
season_0.3.16.9000.zip(r-4.7)season_0.3.16.9000.zip(r-4.6)season_0.3.16.9000.zip(r-4.5)
season_0.3.16.9000.tgz(r-4.6-any)season_0.3.16.9000.tgz(r-4.5-any)
season_0.3.16.9000.tar.gz(r-4.7-any)season_0.3.16.9000.tar.gz(r-4.6-any)
season_0.3.16.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
season/json (API)
NEWS

# Install 'season' in R:
install.packages('season', repos = c('https://agbarnett.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/agbarnett/season/issues

Datasets:
  • AFL - Australian Football League (AFL) Players' Birthdays for the 2009 Season
  • CVD - Cardiovascular Deaths in Los Angeles, 1987-2000
  • CVDdaily - Daily Cardiovascular Deaths in Los Angeles, 1987-2000
  • exercise - Exercise Data from Queensland, 2005-2007
  • indoor - Indoor Temperature Data
  • schz - Schizophrenia Births in Australia, 1930-1971
  • stillbirth - Stillbirths in Queensland, 1998-2000

On CRAN:

Conda:

non-linearseasonstime-series

7.58 score 3 stars 79 scripts 376 downloads 11 mentions 23 exports 22 dependencies

Last updated from:3995cb9da9. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK190
source / vignettesOK349
linux-release-x86_64OK185
macos-release-arm64OK117
macos-oldrel-arm64OK121
windows-develOK153
windows-releaseOK147
windows-oldrelOK148
wasm-releaseOK134

Exports:aaftautoplotcasecrossciPhasecosinorcreateAdjinvyrfractionmonthglmmonthmeannonlintestnscosinorperiphasecalcplot_circleplot_monthplotCircleplotCircularplotMonthseasreschecksinusoidthirdwtestyrfraction

Dependencies:clicodacpp11farverggplot2gluegtableisobandlabelinglatticelifecycleMASSMatrixR6RColorBrewerrlangS7scalessurvivalvctrsviridisLitewithr

Modelling monthly data

Rendered frommonth-vignette.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-05-12
Started: 2026-05-04

Season tutorial

Rendered fromseason-vignette.Rmdusingknitr::rmarkdownon Jun 01 2026.

Last update: 2026-05-12
Started: 2018-09-02

Readme and manuals

Help Manual

Help pageTopics
Amplitude Adjusted Fourier Transform (AAFT)aaft
Australian Football League (AFL) Players' Birthdays for the 2009 SeasonAFL
Plot the fitted sinusoid from a 'cosinor()' modelautoplot.Cosinor
Plot the monthly estimates from 'monthglm()'autoplot.monthglm
Plot the monthly mean estimates from 'monthmean()'autoplot.Monthmean
Plot the region of the third-order moment outside the test limitsautoplot.nonlintest
Plot the trend and seasonal estimates from 'nscosinor()'autoplot.nsCosinor
Plot the periodogram from 'peri()'autoplot.peri
Plot the third-order moment from 'third()'autoplot.third
Case-crossover Analysis to Control for Seasonalitycasecross
Mean and Confidence Interval for Circular PhaseciPhase
Cosinor Regression Model for Detecting Seasonality in Yearly Data or Circadian Patterns in Hourly Datacosinor
Creates an Adjacency MatrixcreateAdj
Cardiovascular Deaths in Los Angeles, 1987-2000CVD
Daily Cardiovascular Deaths in Los Angeles, 1987-2000CVDdaily
Exercise Data from Queensland, 2005-2007exercise
Indoor Temperature Dataindoor
Inverts a fraction of the year or hour to a useful time scale.invyrfraction
Fit a GLM with Monthmonthglm
Calculate monthly mean or adjusted monthly mean for count data.monthmean
Test of Non-linearity of a Time Seriesnonlintest
Non-stationary Cosinornscosinor
Periodogramperi
Phase from Cosinor Estimatesphasecalc
Circular plot of monthly values (ggplot2)plot_circle
Plot a response by month (ggplot2)plot_month
Plot the Results of a Cosinorplot.Cosinor
Plot of Monthly Estimatesplot.monthglm
Plot of Monthly Mean Estimatesplot.Monthmean
Plot the Results of the Non-linear Testplot.nonlintest
Plot the Results of a Non-stationary Cosinorplot.nsCosinor
Circular PlotplotCircle
Circular Plot Using SegmentsplotCircular
Plot Results by MonthplotMonth
Print the Results of a Case-Crossover Modelprint.casecross
Prints basic results from 'monthglm()'print.monthglm
Print the Results from Monthmeanprint.Monthmean
Print the Results of the Non-linear Testprint.nonlintest
Print the Results of a Non-stationary Cosinorprint.nsCosinor
Printing a summary of a month.glmprint.summary.monthglm
Print a summary of an 'nscosinor()' objectprint.summary.nsCosinor
Schizophrenia Births in Australia, 1930-1971schz
Seasonal Residual Checksseasrescheck
Plot a Sinusoidsinusoid
Stillbirths in Queensland, 1998-2000stillbirth
Summary of the Results of a Case-crossover Modelsummary.casecross
Print and summary methods for a Cosinorprint.Cosinor print.summary.Cosinor summary.Cosinor
Summary for a Monthglmsummary.monthglm
Summary for a Non-stationary Cosinorsummary.nsCosinor
Third-order Momentthird
Walter and Elwood's Test of Seasonalitywtest
Fraction of the Yearyrfraction