Learn R Programming

climtrends (version 1.0.6)

SNHTabsoluteTrend: standard normal homogeneity test (SNHT) absolute homogeneity test for trends

Description

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

Usage

SNHTabsoluteTrend(dataSeries)

Arguments

dataSeries
time series of climate data

Value

SNHTdata
T SNHT absolute homogeneity test for trends
PosStartTrend
estimated start position of the trend

Source

ALEXANDERSSON, H. and MOBERG, A. (1997), HOMOGENIZATION OF SWEDISH TEMPERATURE DATA. PART I: HOMOGENEITY TEST FOR LINEAR TRENDS. Int. J. Climatol., 17: 25–34. doi: 10.1002/(SICI)1097-0088(199701)17:1<25::aid-joc103>3.0.CO;2-J Tuomenvirta, H., 2002: Homogeneity testing and adjustment of climatic time series in Finland. Geophysica, 38(1-2), 15-41.

References

ALEXANDERSSON, H. and MOBERG, A. (1997), HOMOGENIZATION OF SWEDISH TEMPERATURE DATA. PART I: HOMOGENEITY TEST FOR LINEAR TRENDS. Int. J. Climatol., 17: 25–34. doi: 10.1002/(SICI)1097-0088(199701)17:1<25::aid-joc103>3.0.CO;2-J

Tuomenvirta, H., 2002: Homogeneity testing and adjustment of climatic time series in Finland. Geophysica, 38(1-2), 15-41.

Examples

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

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

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

Run the code above in your browser using DataLab