Learn R Programming

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

season

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

Two useful functions are casecross for case-crossover analysis and nscosinor to estimate non-stationary seasonal patterns using the Kalman filter.

Copy Link

Version

Install

install.packages('season')

Monthly Downloads

482

Version

0.3.12

License

GPL (>= 3)

Maintainer

Last Published

August 27th, 2020

Functions in season (0.3.12)

createAdj

Creates an Adjacency Matrix
CVD

Cardiovascular Deaths in Los Angeles, 1987--2000
CVDdaily

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

Case--crossover Analysis to Control for Seasonality
aaft

Amplitude Adjusted Fourier Transform (AAFT)
cipolygon-internal

Function to Draw CI Polygon
cosinor

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

Mean and Confidence Interval for Circular Phase
AFL

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

Exercise Data from Queensland, 2005--2007
nochars-internal

Remove Letters and Characters from a String
indoor

Indoor Temperature Data
flagleap

Count the Number of Days in the Month
print.nonlintest

Print the Results of the Non-linear Test
plot.nsCosinor

Plot the Results of a Non-stationary Cosinor
plotCircle

Circular Plot
print.casecross

Print the Results of a Case-Crossover Model
summary.monthglm

Summary for a Monthglm
summary.nsCosinor

Summary for a Non-stationary Cosinor
nonlintest

Test of Non-linearity of a Time Series
print.nsCosinor

Print the Results of a Non-stationary Cosinor
monthglm

Fit a GLM with Month
plot.Cosinor

Plot the Results of a Cosinor
plot.Monthmean

Plot of Monthly Mean Estimates
season-package

Tools for Uncovering and Estimating Seasonal Patterns.
peri

Periodogram
phasecalc

Phase from Cosinor Estimates
monthmean

Monthly Means
seasrescheck

Seasonal Residual Checks
yrfraction

Fraction of the Year
nscosinor.initial-internal

Initial Values for Non-stationary Cosinor
plot.nonlintest

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

Plot of Monthly Estimates
nscosinor

Non-stationary Cosinor
rinvgamma-internal

Random Inverse Gamma Distribution
invyrfraction

Inverse Fraction of the Year or Hour
print.Cosinor

Print the Results of a Cosinor
print.Monthmean

Print the Results from Monthmean
sinusoid

Plot a Sinusoid
stillbirth

Stillbirths in Queensland, 1998--2000
kalfil-internal

Forward and Backward Sweep of the Kalman Filter
wtest

Walter and Elwood's Test of Seasonality
third

Third-order Moment
plotCircular

Circular Plot Using Segments
plotMonth

Plot Results by Month
summary.casecross

Summary of the Results of a Case-crossover Model
schz

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

Summary for a Cosinor
season-internal

Internal Season Functions