Rank: 6870 based on 7 downloads (last 30 days) and 1 file submitted
photo

Eelke Spaak

E-mail
Company/University
Radboud University Nijmegen

Personal Profile:

 

Watch this Author's files

 

Files Posted by Eelke Spaak
Updated   File Tags Downloads
(last 30 days)
Comments Rating
21 Aug 2012 Meng's Z-test for correlated correlation coefficients This function implements Meng's z-test for correlated correlations. Author: Eelke Spaak statistics 7 1
Comments and Ratings by Eelke Spaak View all
Updated File Comments Rating
21 Oct 2014 Log of factorial of large numbers computes log10 of the factorial Author: Yvan Lengwiler

This allowed me to compute Fisher's exact test for contingency tables for large n. Excellent, thanks a lot!

19 May 2014 K-medoids K-medoids clustering algorithm Author: Mo Chen

Even though the code is lightning fast, the solution is not the proper one, hence this code is useless. See http://i.imgur.com/VNY73l7.png for example output of k = 6 for a naive (and very slow) implementation of the algorithm, and this submission. Obviously the naive is correct, this submission is incorrect.

Nonetheless thanks for the effort! It would be great if you could produce correct code that is still as fast.

28 Nov 2013 boundedline.m Plot one or more lines with a shaded boundary (can represent error, confidence intervals, etc). Author: Kelly Kearney

Thanks for this great and simple submission. I have noticed one problem though, it cannot handle NaNs in the data. Matlab's plot() and line() simply ignore NaN values, but patch() does not draw anything when there are NaNs in the data.

To fix this, I added the following around line 313, right before the actual calls to line() and patch():

% remove nans
for k = 1:numel(xp)
naninds = isnan(xp{k}) | isnan(yp{k});
xp{k} = xp{k}(~naninds);
yp{k} = yp{k}(~naninds);
end

21 Aug 2013 CalcMD5 Another MD5 calculator as fast C-Mex Author: Jan Simon

Is there any progress on the support for large (> 2^31 bytes) variables? This would be very useful to me.

Comments and Ratings on Eelke Spaak's Files
Updated File Comment by Comments Rating
07 Sep 2013 Meng's Z-test for correlated correlation coefficients This function implements Meng's z-test for correlated correlations. Author: Eelke Spaak Nicco Reggente

Hey. Thank you so much for creating this script. I had some trouble adapting their z-test in MATLAB and this was really a life saver.

However, I wanted to make a comment that in line 48 you introduce an ordering effect that shouldn't be present. One should be able to enter in r1 and r2 in irrelevant orders and get the same result. That's not how it stands now and it may confuse some users of the script and give Type II errors to some ambitious young researchers :).

Anyhow, it's a simple fix with an abs() like this:

z = abs(z1 - z2) * sqrt( (n-3) / (2*(1-rx)*h) ); %abs added in by NR to control for ordering effect

Once again...thanks!

Contact us