# Statistical Methods for Climate Sciences

## Documentation for package ‘climtrends’ version 1.0.6

- DESCRIPTION file.
- Code demos. Use demo() to run them.

## Help Pages

A B C D E F G I L M N P R S T V W Y misc

## -- A --

AdjHomogenization | Homogenization adjustment within a certain window
AllfilesIEObyPathPattern | Read multiple IEO files
AllReadUSGS2timeseries | Read multiple USGS files
annual.precipitation.totals.Madison | Annual precipitation totals in inches Madison (Wisconsin)

## -- B --

BSXFUN | Apply a function to each element of 2 arrays with singleton expansion enabled
Buishand.Critical.Values | Critical values for the Buishand test
BuishandRangeTest | Buishand range absolute homogeneity test

## -- C --

CompleteMissingValuesDailyMean | complete missing values on a time series of daily values (mean)
CraddockTest | Craddock test
CreateReferenceSeriesFromFilesMean | Create a reference series (averaging)
CreateReferenceSeriesFromFilesMeanCorrelations | Create a reference series (averaging weights/correlations)
CreateReferenceSeriesFromFilesMeanCorrelationsTwoseries | Create a reference series (averaging weights/correlations)
Cumulative.Deviations.Test.Critical.Values | Critical values for Worsley's likelihood ratio test
CumulativeDeviations | cumulative deviations test (parametric test for step jump in mean)
CumulativeDeviationsQR | cumulative deviations test (parametric test for step jump in mean)

## -- D --

DailyClimatologyFromDailyData | Daily climatology
DistributionFreeCUSUM | Distribution Free CUSUM (non-parametric test for step jump in mean)

## -- E --

ESDstatistic | ESD statistic

## -- F --

FillDailyGapsWithSomeValue | fill missing days with some value
FillYearlyGapsWithSomeValue | fill missing days with some value
FindCommonPeriod | Find the common period between several time series
FindOutliersESDtest | Find outliers based on the ESD test
FindOutliersGrubbsOnesidedMax | Find outliers based on the Grubbs test
FindOutliersGrubbsOnesidedMin | Find outliers based on the Grubbs test
FindOutliersGrubbsTwosided | Find outliers based on the Grubbs test
FindOutliersHampel | Find outliers based on quantiles
FindOutliersMAD | Find outliers based on the absolute deviation around the median
FindOutliersModifiedZscore | Find outliers based on the z-score
FindOutliersQuant | Find outliers based on quantiles
FindOutliersSD | Find outliers based on quantiles
FindOutliersTietjenMooreTest | Find outliers based on the Tietjen Moore test
FindOutliersTrimmedMeans | Find outliers based on trimmed means
FindOutliersZscore | Find outliers based on the z-score
FirstMonthOfSeason | Get the first/last month of a season

## -- G --

GetInfoHomogenization | Useful info from an homogenization test
GetNDP | Read data from a Numeric Data Package (NDP) file from GCMD
GetShiftValue | Get peak value and its sign

## -- I --

IsLeapYear | Determine if a year is a leap year

## -- L --

LastDayOfTheMonth | Get the last day of a month
LastMonthOfSeason | Get the first/last month of a season
LevelSignifMarks | Use symbols to represent the level of significance
ListContinuousDays | List the days with continuous data
ListHomogStats | List with the years of a probable shift and other info
ListHomogTZ | Useful info from an homogenization test

## -- M --

MedianCrossingTest | Median Crossing (non-parametric test for randomness)
MonthlyAnomaliesFromDailyData | Monthly anomalies
MonthlyClimatologyFromDailyData | Monthly climatology
MonthlyFuncFromDay | Monthly values converted from daily values
MonthTrendYearsFuncFromDay | Monthly values converted from daily values

## -- N --

NegCurve | Get peak value and its sign

## -- P --

peaksP | Use symbols to represent the level of significance
Pettitt.Critical.Values | Critical values for the Pettitt test
PettittTest | Pettitt test
PlotHomog | Plot the graphics for many homogenization methods
PlotSeriesAndRefSimple | Plot a series and one or more reference series
PlotSeriesDifference | Plot the difference between 2 series

## -- R --

Rank.Von.Neumann.Ratio.Test.Critical.Values | Critical values for the Rank Von-Neumann Ratio Test
RankDifferenceTest | Rank Difference test (non-parametric test for randomness)
RankSumTest | Rank Sum test
ReadClimexpKnmiNL | Read KNMI Climate Explorer files
ReadClimexpKnmiNL12month | Read monthly values KNMI Climate Explorer files
ReadCRDEC | Read GHCN-D files
ReadECAdata | Read data from a ECA data file
ReadECAdataIndexDTR | Read data from a ECA data file
ReadEtmgegFile | Read USHCN files
ReadGHCNymd | Read GHCN-Daily files
ReadHERTTAdailyCSV | Read HERTTA files
ReadHERTTAdmyQdaily | Read HERTTA month+year+Q files
ReadMeteoSwiss | Read MeteoSwiss files
ReadNdp040stationDat | Read data from a CDIAC data file
ReadNdp040stationData | Read data from a CDIAC data file
ReadNdp040stationHistory | Read data from a CDIAC data file
ReadNdp040stationInventory | Read data from a CDIAC data file
ReadPSMSLmonthly | Read PSMSL files
ReadUSGS2timeseries | Read a a USGS discharge file
ReadUSHCN | Read USHCN files
ReadYearAnd12MonthsData | Read a TAB delimited data file with year and months in columns

## -- S --

SiegelTukey | annual mean of the absolute day-to-day differences of DTR (SiegelTukey)
SNHT.Critical.Values | Critical values for the Pettitt test
SNHT.Critical.Values.Alexandersson1997 | Critical values for the Pettitt test
SNHT.TwoDifferentSDs.Critical.Values | Critical values for the standard normal homogeneity test (SNHT) for two different SDs
SNHT.TwoShifts.Critical.Values | Critical values for the standard normal homogeneity test (SNHT) for two shifts
SNHTabsolute | standard normal homogeneity test (SNHT) absolute homogeneity test
SNHTabsolute2SDs | standard normal homogeneity test (SNHT) absolute homogeneity test for two different SDs
SNHTabsoluteDoubleShift | standard normal homogeneity test (SNHT) absolute homogeneity test for two shifts
SNHTabsoluteII | standard normal homogeneity test (SNHT) absolute homogeneity test, SD different from 1
SNHTabsoluteTrend | standard normal homogeneity test (SNHT) absolute homogeneity test for trends
SNHTrelative | standard normal homogeneity test (SNHT) relative homogeneity test
SNHTrelative2SDs | standard normal homogeneity test (SNHT) relative homogeneity test for two different SDs
SNHTrelativeDoubleShift | standard normal homogeneity test (SNHT) relative homogeneity test for two shifts
SNHTrelativeII | standard normal homogeneity test (SNHT) relative homogeneity test, SD different from 1
SNHTrelativeTrend | standard normal homogeneity test (SNHT) relative homogeneity test for trends
Sqplot | Number of elements for a plot to be nearly square

## -- T --

TietjenMoore | Tietjen Moore statistic
TrimmedMean | trimmed mean
TurningPointsTest | Turning Points (non-parametric test for randomness)

## -- V --

ValuesBetween2Dates | Get values between two dates
ValuesBetween2years | Get values between two years
VDTR | annual mean of the absolute day-to-day differences of DTR (VDTR)
Von.Neumann.Ratio.Test.Critical.Values | Critical values for the Von Neumann ratio test
VonNeumannRatio | Pettitt test
VonNeumannRatioRank | Von Neumann ratio rank test

## -- W --

WetDayCount | Get number of wet days
Worsley.Likelihood.Ratio.Test.Critical.Values | Critical values for Worsley's likelihood ratio test
WorsleyLikelihoodRatio | Worsley's Likelihood Ratio test

## -- Y --

YearFuncFromDay | Annual values converted from daily values
yearly.average.temperature.Turin.Milan | Yearly average temperature in Turin, Milan
YearMeanFromDay | Annual values converted from daily values

## -- misc --

%w/o% | x without y