craddock.test: Craddock test

Description Usage Arguments Value Author(s) Source References Examples

Description

CraddockTest returns the result of the Craddock test applied to a time series.

Usage

1
CraddockTest(yearDF, valcol1, valcol2)

Arguments

yearDF

dataframe with climate data

valcol1

column with values

valcol2

column with values

Value

The result of the Craddock test.

Author(s)

Jose Gama

Source

Wijngaard, J. B., Klein Tank, A. M. G. and K<c3><b6>nnen, G. P. (2003), Homogeneity of 20th century European daily temperature and precipitation series. Int. J. Climatol., 23: 679<e2><80><93>692. doi: 10.1002/joc.906

References

Wijngaard, J. B., Klein Tank, A. M. G. and K<c3><b6>nnen, G. P. (2003), Homogeneity of 20th century European daily temperature and precipitation series. Int. J. Climatol., 23: 679<e2><80><93>692. doi: 10.1002/joc.906

Examples

1
demo(demoCraddockTest)

Example output

	demo(demoCraddockTest)
	---- ~~~~~~~~~~~~~~~~

> # Craddock test for testing the homogeneity of yearly average temperatures of Milan vs Turin
> # example based on:
> # Training session on homogenisation methods (Bologna 17-18 May, 2005)
> # Historical Climatology Group
> # Istituto di Scienze dell'Atmosfera e del Clima (Institute of Atmospheric Sciences and Climate)
> # http://www.isac.cnr.it/climstor/EVENTS/hom_training.html
> 
> data(yearly.average.temperature.Turin.Milan)

> craddock.result <- CraddockTest(yearly.average.temperature.Turin.Milan,2,3)

> plot(yearly.average.temperature.Turin.Milan[,1],craddock.result,type='l',xlab='',ylab='Craddock')

> # Example of inhomogeneity
> tmp <- yearly.average.temperature.Turin.Milan

> tmp[20:43,3] <- tmp[20:43,3]+1 # adding an error of +1 degree to Milan's yearly average temperatures from 1980

> craddock.result <- CraddockTest(tmp,2,3)

> dev.new()

> plot(yearly.average.temperature.Turin.Milan[,1],craddock.result,type='l',xlab='',ylab='Craddock')

climtrends documentation built on May 29, 2017, 11:58 p.m.