Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
14 Oct 2009 Aggregate data using any number of multiple columns Using two of Matlabs functions, unique and accumarray, this function summarizes any number of cols. Author: Jeff Burkey D'Errico, John

I might point out that this is identical to what the already existing function consolidator does. In addition, consolidator allows a tolerance for floating point data.

http://www.mathworks.com/matlabcentral/fileexchange/8354

25 Aug 2009 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Burkey, Jeff

Units for Sen's slope are what ever units you feed into it per time increment you feed into it. Example: cfs/year.

25 Aug 2009 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Kristina

What are the units for Sen's slope for a time series with annual observations?

10 Aug 2009 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Kristina

05 Aug 2009 LOWESS, Locally Weighted Scatterplot Smoothing for linear and non-linear data (enhanced) LOWESS, a robust regression like LOWESS allows detecton of a trend otherwise with too much variance Author: Jeff Burkey Burkey, Jeff

You shouldn’t need to modify the function to not input the “xdata”. If you don’t input it, the function will perform just not that task. If that is the case, don’t specify the “xy” as part of your output either.

The “dataout” variable contains the predicted y for each x- value supplied in the “datain” variable. The “xdata” is if you want a different set of y-predictions using the lowess function for other x-data not provided in the “datain” variable.

I don’t remember if the function I posted sorts or not, but if you are wanting to regress as a function of time, you may not want to sort.

I hope this helps.

- Jeff

05 Aug 2009 LOWESS, Locally Weighted Scatterplot Smoothing for linear and non-linear data (enhanced) LOWESS, a robust regression like LOWESS allows detecton of a trend otherwise with too much variance Author: Jeff Burkey Kaite

awsome! This is exactly what I need. I am a little confused about one thing...I have an n x 2 matrix in datain that consists of x=precip and y=groundwater level that I would like to do the regression on and get the y-predictions using the lowess regression results. I modified the function to not include the "xdata" and "xy" but I am getting errors about the try-catch syntax on line 298 of the m-file.I have version 7.4.0 (R2007a). The error states that it will continue to run but I dont get results. Am I putting the data in the wrong place? Do I need to put a second data set in? I wanted to take the resulting predicted y values and run the Mann-Kendall test to see if i see a significant trend. what is the purpose of the second dataset of x-values? As you can tell I am new to Matlab and it would be wonderful if I could figure this out! thanks so much!! If i can get this to work for my data this would be AMAZING!

21 Jun 2009 LOWESS, Locally Weighted Scatterplot Smoothing for linear and non-linear data (enhanced) LOWESS, a robust regression like LOWESS allows detecton of a trend otherwise with too much variance Author: Jeff Burkey Evans, Jeff

Fantastic! Worked perfectly the first time. I did modify it just a bit to fit my purposes by suppressing the screen output and only returning the dataout variable, since don't want to plot the confidence limits. Thanks for the contribution.

- Jeff

19 Feb 2009 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Burkey, Jeff

I've included a MAT file with example data to run the function. I hope this helps. I also added an example dataset file for ktaub, sktt, b17, globaltrends functions as well.

19 Feb 2009 Homogeneity test of Global Trends using Chi-Square on Mann-Kendall Test for homogeneity of trends in different seasons-stations,and global trends using Chi-Square. Author: Jeff Burkey Burkey, Jeff

I've included a MAT file with example data to run the function. I hope this helps.

19 Feb 2009 Seasonal Kendall Test with Slope for Serial Dependent Data Seasonal trends using tau-a,b and seasonal slope with intervals, accounts for serial dependence. Author: Jeff Burkey Burkey, Jeff

I've included a MAT file with example data to run the function. I hope this helps.

19 Feb 2009 Log-Pearson Flood Flow Frequency using USGS 17B This function will calculate flood flow frequencies using published guidelines by the USGS. Author: Jeff Burkey Burkey, Jeff

I've updated the zip file to include an example mat file (ex1) and forgo the need for people to extract out a sample dataset from the example.mat file. I hope this helps, and expedite any need to fix a problem should it arise.

18 Feb 2009 Log-Pearson Flood Flow Frequency using USGS 17B This function will calculate flood flow frequencies using published guidelines by the USGS. Author: Jeff Burkey Burkey, Jeff

Greg,
I'm not sure about the need of a resolution. I cannot recreate any errors. If you want, send me your ex1.mat file. It should be the same, but obviously something is different.

18 Feb 2009 Log-Pearson Flood Flow Frequency using USGS 17B This function will calculate flood flow frequencies using published guidelines by the USGS. Author: Jeff Burkey Hancock, Greg

When I run the ex1 file, created as you specify from the examples.mat file, I get the same message as the previous post:

>>b17(ex1, .590537, 'c:\temp\test.png', 'Demo Station',1)

??? In an assignment A(I) = B, the number of elements in B and
 I must be the same.

Error in ==> b17>freqCurve at 444
        K(i) = lagrange([g k], G, 4);

Error in ==> b17 at 292
    [K floodfreq Gzero] = freqCurve(Xmean, S, G, ktable);

Any resolution to this issue?

Thanks
Greg

17 Feb 2009 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Chien, Ian

Could you give me a example how to build up the "datain" file used in sktt.m and ktaub.m, and Globaltrends.m in Matlab? THANKS.

28 Jan 2009 Log-Pearson Flood Flow Frequency using USGS 17B This function will calculate flood flow frequencies using published guidelines by the USGS. Author: Jeff Burkey Burkey, Jeff

K R,
Hmm...not sure why you're getting unequal numbers. Assuming you open the example.mat file so it shows in your Workspace, then run these next for lines exactly:
  ex1 = examples(~isnan(examples(:,2)),1:2);
  ex2 = [examples(~isnan(examples(:,3)),1) examples(~isnan(examples(:,3)),3)];
  ex3 = [examples(~isnan(examples(:,4)),1) examples(~isnan(examples(:,4)),4)];
  ex4 = [examples(~isnan(examples(:,5)),1) examples(~isnan(examples(:,5)),5)];

Then run the function again pointing to either: ex1, ex2, ex3, or ex4. I hope this helps. Email me directly if you need more help. Regards,
jeff.

28 Jan 2009 Log-Pearson Flood Flow Frequency using USGS 17B This function will calculate flood flow frequencies using published guidelines by the USGS. Author: Jeff Burkey R, K

I couldn't get your example script to run. I get the following error:

??? In an assignment A(I) = B, the number of elements in B and
 I must be the same.

Error in ==> b17>freqCurve at 429
        K(i) = lagrange([g k], G, 4);

Error in ==> b17 at 277
    [K floodfreq Gzero] = freqCurve(Xmean, S, G, ktable);

02 Nov 2008 Nash-Sutcliffe Model Accuracy Metric A metric to measure the ability of a model to predict observed values Author: Jeff Burkey Burkey, Jeff

Sorry about that. It's more for legacy work done in the past, and I probably should take it out. I was working on a project where we were running hundreds of variants of metrics and differentiating by name gets messy, hence using a database to track which statistic was used. - Jeff

19 Jul 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Burkey, Jeff

Nicholas,
When I was validating my code to other stat packages, I noticed they were returning S unadjusted. So while S is adjusted to s, the return in my matlab function is S unadjusted. If you prefer to return the adjusted, just change in the S to s in the function[...] = ktaub().
For your memory problem, I'm not sure what Matlab is suggesting, I've not had the luxury of having such a large data set to compute trends on. But maybe try casting (boxing, etc) the A# and B# matrices to single precision if you don't need double. What I'm not sure of is does Matlab require the subsequent function calls to work with double or will it box on the fly...don't know. You could pull the age old binary trick of scaling your doubles to long ints. Then scale back at the end tracking the precision needed.
Per your tied Rank function: I didn’t know about that one, but looking at the help text…can it be as simple as those are the three variables to adjust the denominator? If true, in my code those three would be: L1, t1a, t2a. Of course your S would be the adjusted S if necessary. If you want to compute your Z statistic you also need to then use the L1 variable and your ties.
Hopefully this helps, and without looking deeper into the tiedrank(x,1) function I can’t be more certain of what it does.
Regards,
Jeff.

04 Jul 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Cutler, Nicholas

The program seems quite nice.
The latest version you download (4 July 2008) still doesn't have the correction to make s = S for small data sets.
I would like to make the taub calculation on a data set of length 8000. Unfortunately I keep getting the OUT OF MEMORY error. Any suggestions on this (besides the automatic suggestions Matlab gives - I've tried all of those).
One possibility - I've made a ktaub-a function which works quite quickly which is nice. I only have a handful of equal values for one of my 2 data sets - and when I perform the Matlab calculation [R,TIEADJ]=TIEDRANK(datain,1) I get

TIEADJ = 8 0 144

and this is also in a quick time.

Does anyone know how I can use these adjustment values for ties required in the
computation of Kendall's tau-b, as the Matlab documentation says? I cannot find any further documentation on it.

Thanks - and much appreciated, in advance.

Nick

30 Jun 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Krneki, Izi

Is this the Kendall rank correlation? Because datain is Nx2. How do i compute Mann-Kendall trend test? Please help!

23 Jun 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Moral, Hakan

Till Ruprecht(till.ruprecht@nexgo.de)
Is there an improvement in the code for the
large time series. if there is i will invaluably thank you for the improvement for a phd study of one of my friends i need this .
thanks in advance.

16 Jun 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Moral, Hakan

16 Jun 2008 Nash-Sutcliffe Model Accuracy Metric A metric to measure the ability of a model to predict observed values Author: Jeff Burkey Jeffers, Clare

It works! This has saved me an hour or two of my life so thanks very much.

It would be excellent except I didn't find the comments that easy to follow. What is going on with this:

    % Set metric id for optional use. This is arbitrarily set to 1001
    % for this metric and used in other applications not associated to this
    % function. The user can either ignore or remove from the function.

?

Maybe it is just me being dim but I couldn't work out the point of that.

Thanks again for posting this.

23 May 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Burkey, Jeff

ok. Type-o on apologize.

23 May 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Burkey, Jeff

I appologize. I did not see this comment until today (May 22, 2008). After conversing with Dr. Zhi, we agreed that the discrepancy was with the adjustments to S based on data set size. While my code adjusts S when n <= 10, it should adjust S when n >= 10. I also did note that many of the statistic packages out there adjust S regardless of dataset size (users choice at that point). This error does affect Z and p (at about the 3 significant digits or smaller). The correction has be uploaded. It should be live in a day or two. - Jeff (author)

24 Apr 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Zhi, Li

There may be something wrong with your program, the calculated result of Zc and Sen's Slope are incorrect!

11 Apr 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Burkey, Jeff

I would like to thank everyone that has commented. I'm close to the seasonal kendall, homogeneity, global trend, others. I'm in the process of validating the code for the statistics. - Jeff (author)

01 Apr 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey tarawne, qassi

I need to know how mann kendall trend can be done

01 Feb 2008 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey ALCARAZ-SEGURA, Domingo

It's great that it works without loops. Besides, now that W Vista allows to add RAM with flash-drives, the memory issue mentioned above does not seem such a problem. I'm excited about seeing the seasonal version of it.

25 Jul 2007 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Peterson, R

I used part of it in an in-house implementation of the mann-kendall test. the calculation of the ties sum was ingenious.

29 Jun 2007 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Galley, Ryan

Very simple and straightforward.
Easy to use.

21 Apr 2007 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Bukkey, Jeff

I would like to extend any and all CONSTRUCTIVE criticism, like Till Reprecht above. However, it is not very useful when someone submits a poor rating, and gives no comments. I?ve tried contacting Mr. Elhameed as to why he gave such a poor rating (and if possible address his concerns). I?ve received no response. In fact, Mr. Elhameed was kind enough to actually submit two ratings both with 1 star (what is the reason for that?). Mathworks was kind enough to remove one of his ratings since it seems a little disrespectful to submit the poorest rating twice, especially with no comments.
In response to Till Reprecht, I acknowledge the memory limitation in the source code with comments. My goal when submitting code to Mathworks is to provide an efficient method for performing computations. Given the way I maximized use of arrays and no circular logic, it comes at a cost of memory space. Some day when the need arises, I?ll submit a seasonal mann-kendall, heterogeneity, and maybe a few others to compliment the tau-b. But I really don?t plan on re-writing the code with loops.
Since I can get no response to Elhameed?s rating, I?m not sure it would be legitimate if I submitted this response with a rating, so I didn?t. I?m hoping other people will submit ratings (hopefully, 4~5 star) and comments, to offset Mr. Elhameed.
Regards,
Jeff (author).

10 Apr 2007 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey abd elhameed, mostafa

25 Mar 2007 A Parabolic Lagrangian Interpolating Polynomial Function This function uses a non-linear interpolation (Lagrange) to estimate y given x, based on a set of ob Author: Jeff Burkey Burkey, Jeff

Well...when I submitted this I didn't know there were so many variants of this function. I used 'lagrangian' instead of 'langrange' for my search. Hence, the mistaken thought of a need. Nevertheless, maybe my version is a fresh perspective out there on how it's done in vectors and arrays only. If my code reflects a previously submitted version, my appologies. I assure everyone, I reviewed no one else's in developing mine, but great minds think alike.
 - Jeff (author).

27 Nov 2006 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Ruprecht, Till

Dear Jeff Burkey,
thank you for providing a Mann-Kendall-algorithm based on Matlab.
A disadvantage of the algorithm obviously
is, that for large time series (i.e. 25.0000 units) the ram gets out of memory easily.
(In the example 25.000 x 25.000 x 8Byte (Double Precision) = 5 GB are required to store the replicated matrix). It would be great, having a alternative algorithm in
your method, taking into account the size
of the input data.

Greetings

09 Oct 2006 Mann-Kendall Tau-b with Sen's Method (enhanced) A non-parametric trend test including Sen's slope method using Mann-Kendall Tau-b technique Author: Jeff Burkey Corzo, Gerald

 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com