Description Usage Arguments Value Author(s) Source References Examples
CraddockTest
returns the result of the Craddock test applied to a time series.
1 | CraddockTest(yearDF, valcol1, valcol2)
|
yearDF |
dataframe with climate data |
valcol1 |
column with values |
valcol2 |
column with values |
The result of the Craddock test.
Jose Gama
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
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
1 | demo(demoCraddockTest)
|
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')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.