Rank: 43 based on 675 downloads (last 30 days) and 56 files submitted
photo

Giuseppe Cardillo

E-mail
Company/University
MeriGen Research
Lat/Long
40.86195755004883, 14.21667289733887

Personal Profile:

I'm a biochemist with a PhD in Biotechnologies

Professional Interests:
Biochemestry and Molecular Biology

 

Watch this Author's files

 

Files Posted by Giuseppe View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jan 2012 Screenshot CODIS Combined DNA Index System: a GUI tool for forensic paternity lawsuit Author: Giuseppe Cardillo gui, biotech 17 0
12 Jan 2012 Screenshot Wilcoxon test non parametric Wilcoxon test for two paired samples Author: Giuseppe Cardillo statistics, probability, wilcoxon, parametric, paired samples 36 16
  • 4.0
4.0 | 1 rating
17 Nov 2011 MyRegression A simple function on LS linear regression with many informative outputs Author: Giuseppe Cardillo statistics, probability, leastsquares linear r..., least squares linear ... 32 7
  • 3.88889
3.9 | 9 ratings
16 Nov 2011 Screenshot ROC curve compute a ROC curve Author: Giuseppe Cardillo roc, statistics, receiver operating ch..., probability, curve 218 32
  • 4.0
4.0 | 19 ratings
22 Sep 2011 Screenshot Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo kaplanmeier, statistics, survival function, logrank test, probability, hazard rate 18 21
  • 4.5
4.5 | 2 ratings
Comments and Ratings by Giuseppe View all
Updated File Comments Rating
04 Feb 2012 Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo

the cyclist is right. He did a perfect explanation

17 Jan 2012 Fisher’s Exact Test Hypergeometric cumulative distribution (left, right and two-tailed) including permutation testing. Author: Michael Boedigheimer

I compared your function with the mine using this matrix:
x=[7 12; 8 2].*1000000

Using Myfisher22(x), the function written by me, the result was:
Elapsed time is 5.715080 seconds.

Using your
fexact(x(1),sum(x(:)),x(1)+x(3),x(1)+x(2)) the results were:

??? Maximum variable size allowed by the program is exceeded.

Error in ==> fexact>tri2sqind at 325
    k = (1:max_k)';
Error in ==> fexact>getLookup at 211
[k n ind] = tri2sqind(M);
Error in ==> fexact at 142
    P = getLookup( M,N,tail);

Same results reducing the complexity to
x=[7 12; 8 2].*100000 and
x=[7 12; 8 2].*10000

When I tried on x=[7 12; 8 2].*1000 the pc looped and after 15 minutes I switched it off.

Finally I tried it on x=[7 12; 8 2].*100
Elapsed time is 6.019058 seconds; using Myfisher22 on this "simple" matrix
Elapsed time is 0.008264 seconds.

So before to write "Other implementations on the file exchange are reportedly buggy and are far too slow for problems I'm working on."
I think that you should test deeper your function.

Regards

17 Jan 2012 MyFisher the definitive function for the Fisher's exact and conditional test for any RxC matrix Author: Giuseppe Cardillo

p-value=1-chi2cdf(chi2,df)

27 Dec 2011 MyFisher the definitive function for the Fisher's exact and conditional test for any RxC matrix Author: Giuseppe Cardillo

Considering that chi square is an approximation of Fisher's test, in my opinion it is completely useless to have chi square p-value. Anyway, if you want, you can simply set up it using this code:
C=sum(x,1);
R=sum(x,2);
N=sum(x(:));
[r c]=size(x);
df=(r-1)*(c-1);
Ex=R*C/N;
chi2=sum(sum(((x-Ex-0.5).^2)./Ex));
p-value=1-chi2cdf(chi2,gl)

05 Dec 2011 ROC curve compute a ROC curve Author: Giuseppe Cardillo

this is a problem caused by using a new syntax of matlab that is not supported by your version. Simply do this:
1) edit roc
2) change [~,J]=min(d); into [S,J]=min(d);
3) save and exit

Comments and Ratings on Giuseppe's Files View all
Updated File Comment by Comments Rating
04 Feb 2012 Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo Cardillo, Giuseppe

the cyclist is right. He did a perfect explanation

03 Feb 2012 Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo cyclist, the

The logrank calculation here is correct. This code applies the Yates correction in the calculation of the z-score. (Line 207 of my version of the code.) I get 0.0193 from this code when I remove the Yates correction.

30 Jan 2012 MyRegression A simple function on LS linear regression with many informative outputs Author: Giuseppe Cardillo Choi, Chris

Having a few statistics that MATLAB default functions do not provide is awesome especially when it's too cumbersome to write a new one. Good job!

28 Jan 2012 Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo Nitin

I also am having trouble with this function.. the p-values are always slightly off (usually a little higher than what I get using other programs)

25 Jan 2012 Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo Abhijit

I'm sorry, but using your software I do not get the p-value for the log-rank test that is consistent with the results of either R or Stata (both of which match). For the test data supplied with the function, I get a p-value of 0.0193, whereas you're getting a p-value of 0.01529. The KM curves are the same, but there is apparently something wrong in your logrank computation.

Top Tags Applied by Giuseppe
statistics, probability, biotech, example, gui tools
Files Tagged by Giuseppe View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
23 Jan 2012 Screenshot CODIS Combined DNA Index System: a GUI tool for forensic paternity lawsuit Author: Giuseppe Cardillo gui, biotech 17 0
12 Jan 2012 Screenshot Wilcoxon test non parametric Wilcoxon test for two paired samples Author: Giuseppe Cardillo statistics, probability, wilcoxon, parametric, paired samples 36 16
  • 4.0
4.0 | 1 rating
17 Nov 2011 MyRegression A simple function on LS linear regression with many informative outputs Author: Giuseppe Cardillo statistics, probability, leastsquares linear r..., least squares linear ... 32 7
  • 3.88889
3.9 | 9 ratings
16 Nov 2011 Screenshot ROC curve compute a ROC curve Author: Giuseppe Cardillo roc, statistics, receiver operating ch..., probability, curve 218 32
  • 4.0
4.0 | 19 ratings
22 Sep 2011 Screenshot Logrank Comparing survival curves of two groups using the log rank test Author: Giuseppe Cardillo kaplanmeier, statistics, survival function, logrank test, probability, hazard rate 18 21
  • 4.5
4.5 | 2 ratings

Contact us at files@mathworks.com