Learn R Programming

season

R package to run seasonal analyses in time series. For details see our book "Analysing Seasonal Health Data" (2010) https://www.springer.com/gp/book/9783642107474.

Useful functions are:

  • casecross for case-crossover analysis
  • nscosinor to estimate non-stationary seasonal patterns using the Kalman filter
  • nonlintest for a time domain test of non-linearity

Copy Link

Version

Install

install.packages('season')

Monthly Downloads

369

Version

0.3.16

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

Adrian Barnett

Last Published

August 21st, 2025

Functions in season (0.3.16)

plot.Cosinor

Plot the Results of a Cosinor
print.Cosinor

Print the Results of a Cosinor
print.nonlintest

Print the Results of the Non-linear Test
print.monthglm

Print monthglm
plot.nonlintest

Plot the Results of the Non-linear Test
plot.monthglm

Plot of Monthly Estimates
print.casecross

Print the Results of a Case-Crossover Model
plot.Monthmean

Plot of Monthly Mean Estimates
plot.nsCosinor

Plot the Results of a Non-stationary Cosinor
print.Monthmean

Print the Results from Monthmean
sinusoid

Plot a Sinusoid
season-package

season: Tools for Uncovering and Estimating Seasonal Patterns.
print.nsCosinor

Print the Results of a Non-stationary Cosinor
print.summary.Cosinor

printing a summary of a Cosinor
print.summary.nscosinor

printing a summary of an nscosinor
stillbirth

Stillbirths in Queensland, 1998--2000
rinvgamma

Random Inverse Gamma Distribution
seasrescheck

Seasonal Residual Checks
print.summary.monthglm

printing a summary of a month.glm
schz

Schizophrenia Births in Australia, 1930--1971
summary.monthglm

Summary for a Monthglm
summary.casecross

Summary of the Results of a Case-crossover Model
yrfraction

Fraction of the Year
wtest

Walter and Elwood's Test of Seasonality
third

Third-order Moment
summary.nsCosinor

Summary for a Non-stationary Cosinor
CVD

Cardiovascular Deaths in Los Angeles, 1987--2000
aaft

Amplitude Adjusted Fourier Transform (AAFT)
casecross

Case--crossover Analysis to Control for Seasonality
cosinor

Cosinor Regression Model for Detecting Seasonality in Yearly Data or Circadian Patterns in Hourly Data
createAdj

Creates an Adjacency Matrix
exercise

Exercise Data from Queensland, 2005--2007
ciPhase

Mean and Confidence Interval for Circular Phase
flagleap

Count the Number of Days in the Month
CVDdaily

Daily Cardiovascular Deaths in Los Angeles, 1987--2000
AFL

Australian Football League (AFL) Players' Birthdays for the 2009 Season
indoor

Indoor Temperature Data
peri

Periodogram
monthmean

Monthly Means
monthglm

Fit a GLM with Month
kalfil

Forward and Backward Sweep of the Kalman Filter
nscosinor.initial

Initial Values for Non-stationary Cosinor
phasecalc

Phase from Cosinor Estimates
nonlintest

Test of Non-linearity of a Time Series
nscosinor

Non-stationary Cosinor
invyrfraction

Inverse Fraction of the Year or Hour