Package: season 0.3.15

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 and Peter Baker and Oliver Hughes

season_0.3.15.tar.gz
season_0.3.15.zip(r-4.5)season_0.3.15.zip(r-4.4)season_0.3.15.zip(r-4.3)
season_0.3.15.tgz(r-4.4-any)season_0.3.15.tgz(r-4.3-any)
season_0.3.15.tar.gz(r-4.5-noble)season_0.3.15.tar.gz(r-4.4-noble)
season_0.3.15.tgz(r-4.4-emscripten)season_0.3.15.tgz(r-4.3-emscripten)
season.pdf |season.html
season/json (API)

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

Peer review:

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:

non-linearseasonstime-series

21 exports 2 stars 2.65 score 29 dependencies 11 mentions 69 scripts 551 downloads

Last updated 3 years agofrom:6a707fccc0. Checks:OK: 5 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 15 2024
R-4.5-winNOTESep 15 2024
R-4.5-linuxNOTESep 15 2024
R-4.4-winOKSep 15 2024
R-4.4-macOKSep 15 2024
R-4.3-winOKSep 15 2024
R-4.3-macOKSep 15 2024

Exports:aaftcasecrossciPhasecosinorcreateAdjflagleapinvyrfractionmonthglmmonthmeannonlintestnscosinorperiphasecalcplotCircleplotCircularplotMonthseasreschecksinusoidthirdwtestyrfraction

Dependencies:clicolorspacefansifarverggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMASSMatrixmgcvmunsellnlmepillarpkgconfigR6RColorBrewerrlangscalessurvivaltibbleutf8vctrsviridisLitewithr

Season tutorial

Rendered fromseason-vignette.Rmdusingknitr::rmarkdownon Sep 15 2024.

Last update: 2022-02-16
Started: 2018-09-02

Readme and manuals

Help Manual

Help pageTopics
season: Tools for Uncovering and Estimating Seasonal Patterns.season-package season
Amplitude Adjusted Fourier Transform (AAFT)aaft
Australian Football League (AFL) Players' Birthdays for the 2009 SeasonAFL
Case-crossover Analysis to Control for Seasonalitycasecross
Mean and Confidence Interval for Circular PhaseciPhase
Function to Draw CI Polygoncipolygon
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
Count the Number of Days in the Monthflagleap
Indoor Temperature Dataindoor
Inverse Fraction of the Year or Hourinvyrfraction
Forward and Backward Sweep of the Kalman Filterkalfil
Fit a GLM with Monthmonthglm
Monthly Meansmonthmean
Remove Letters and Characters from a Stringnochars
Test of Non-linearity of a Time Seriesnonlintest
Non-stationary Cosinornscosinor
Initial Values for Non-stationary Cosinornscosinor.initial
Periodogramperi
Phase from Cosinor Estimatesphasecalc
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
Print the Results of a Cosinorprint.Cosinor
Print '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 Cosinorprint.summary.Cosinor
printing a summary of a month.glmprint.summary.monthglm
printing a summary of an nscosinorprint.summary.nscosinor
Random Inverse Gamma Distributionrinvgamma
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
Summary for a Cosinorsummary.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