Learn R Programming

⚠️There's a newer version (0.3.15) of this package.Take me there.

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

458

Version

0.3.13

License

GPL (>= 3)

Maintainer

Adrian Barnett

Last Published

June 3rd, 2021

Functions in season (0.3.13)

CVDdaily

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

Inverse Fraction of the Year or Hour
kalfil-internal

Forward and Backward Sweep of the Kalman Filter
createAdj

Creates an Adjacency Matrix
exercise

Exercise Data from Queensland, 2005--2007
nscosinor

Non-stationary Cosinor
nscosinor.initial-internal

Initial Values for Non-stationary Cosinor
plot.Cosinor

Plot the Results of a Cosinor
plot.Monthmean

Plot of Monthly Mean Estimates
yrfraction

Fraction of the Year
casecross

Case--crossover Analysis to Control for Seasonality
flagleap

Count the Number of Days in the Month
ciPhase

Mean and Confidence Interval for Circular Phase
indoor

Indoor Temperature Data
plotMonth

Plot Results by Month
print.Monthmean

Print the Results from Monthmean
print.Cosinor

Print the Results of a Cosinor
plotCircular

Circular Plot Using Segments
AFL

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

Cardiovascular Deaths in Los Angeles, 1987--2000
sinusoid

Plot a Sinusoid
phasecalc

Phase from Cosinor Estimates
peri

Periodogram
season-package

Tools for Uncovering and Estimating Seasonal Patterns.
stillbirth

Stillbirths in Queensland, 1998--2000
seasrescheck

Seasonal Residual Checks
monthglm

Fit a GLM with Month
monthmean

Monthly Means
print.casecross

Print the Results of a Case-Crossover Model
cipolygon-internal

Function to Draw CI Polygon
plot.nsCosinor

Plot the Results of a Non-stationary Cosinor
cosinor

Cosinor Regression Model for Detecting Seasonality in Yearly Data or Circadian Patterns in Hourly Data
print.nonlintest

Print the Results of the Non-linear Test
nochars-internal

Remove Letters and Characters from a String
plotCircle

Circular Plot
print.nsCosinor

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

Summary for a Monthglm
summary.nsCosinor

Summary for a Non-stationary Cosinor
rinvgamma-internal

Random Inverse Gamma Distribution
summary.Cosinor

Summary for a Cosinor
summary.casecross

Summary of the Results of a Case-crossover Model
nonlintest

Test of Non-linearity of a Time Series
plot.monthglm

Plot of Monthly Estimates
plot.nonlintest

Plot the Results of the Non-linear Test
schz

Schizophrenia Births in Australia, 1930--1971
third

Third-order Moment
season-internal

Internal Season Functions
wtest

Walter and Elwood's Test of Seasonality
aaft

Amplitude Adjusted Fourier Transform (AAFT)