Mann-Kendall test Stata I am new in this forum.
I am beginning to work with time series, I have a daily (25,000+ observations) temperature dataset (01/01/1946 - 07/01/2014) 
I want to test for the following:


*

*Trends: So far I used OLS, but I have heard about using
Mann-Kendall test may be useful.

*seasonality: In the same way that in the previous point so far I tried to analyze them with OLS, any recommendation is very welcome.

*structural breaks: the problem with this aspect is that graphically it cannot be observed any breaks, therefore I have been trying with CUSUM and CUSUMSQ to identify this structural breaks, some additional recommendations?


As additional point I need to perform this on Stata. I saw in the web about Kendall package for R, but I cannot use R. Currently I use Gretl and Stata, I hope someone might help me.     
 A: I realize that this question is quite old and the answer will come too late for you, but perhaps it could be useful for others having similar problems. Since you mention the Gretl program, I will try to answer how it can be done with Gretl.


*

*Mann-Kendall trend test: Very recently a function package (additional functionality) named MannKendall.gfn has been provided which you can use. (Full disclosure: co-authored by myself...)

*Seasonality: Of course there are many ways including the popular X13 seasonal adjustment procedure, but as an easy start I would suggest to add seasonal dummies to your model. Given your daily data, perhaps use monthly dummies. Since the data sampling (daily) is not equal to the wanted seasonal dummy periodicity (monthly) I think you cannot use the built-in seasonals() function (nor the menus) for that. Instead to create for example a dummy for observations in January in Gretl you could do series M1 = ($obsminor == 1), because $obsminor gives you the monthly information here. 

*Structural breaks: Again, there are many ways. If you have an idea about the location of the break, you could apply a Chow breakpoint test. If the break date is unknown, you could use another function package for Gretl, named StrucBreak.gfn. This package implements the break tests from Bai and Perron ( (2003, J of Applied Econometrics); given the complexity of options it cannot (yet) be used from the menus, but it comes with a fairly comprehensive help document that explains how to use it.
