Learn R Programming

climtrends (version 1.0.6)

SNHTabsolute: standard normal homogeneity test (SNHT) absolute homogeneity test

Description

SNHTabsolute returns the result of the standard normal homogeneity test (SNHT) absolute homogeneity test applied to a time series.

Usage

SNHTabsolute(dataSeries)

Arguments

dataSeries
time series of climate data

Value

The result of the SNHT absolute homogeneity test.

Source

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

References

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

Examples

Run this code
# standard normal homogeneity test (SNHT) for Turin 1961-2003
testTurin<- SNHTabsolute(yearly.average.temperature.Turin.Milan[,2])

# standard normal homogeneity test (SNHT) for Milan 1961-2003
testMilan<- SNHTabsolute(yearly.average.temperature.Turin.Milan[,3])

plot(1961:2002,testTurin,type='l',col='cyan',ylim=c(0,20),
main='standard normal homogeneity test (SNHT) 1961-2003',xlab='Years',ylab='test value')
par(new=TRUE)
plot(1961:2002,testMilan,type='l',col='magenta',ylim=c(0,20),xlab='',ylab='')
legend("top",c('Turin','Milan'),text.col=c('cyan','magenta'))

Run the code above in your browser using DataLab