Search Comments and Ratings

go

Comments and Ratings

   
Date File Comment by Comment Rating
04 Nov 2009 RMAOV33 Three-way Analysis of Variance With Repeated Measures on Three Factors Test. Author: Antonio Trujillo-Ortiz Swann, Pichon

Function Bugged ?
It returns negative SS values on some analyses and SS/F/p results differ significantly from RM ANOVA calculated using SPSS or Statistica.

03 Nov 2009 DagosPtest D'Agostino-Pearson's K2 test for assessing normality of a data vector. Author: Antonio Trujillo-Ortiz Boomer, Joseph

Downloaded and ran it today. Many thanks.

20 Oct 2009 McNemarextest McNemar's Exact Test. Author: Antonio Trujillo-Ortiz Skynet

05 Oct 2009 press Prediction error sum of squares. Author: Antonio Trujillo-Ortiz Herrera, David

Correction: My computation of PRESS was wrong, and Mr. Antonio Trujillo-Ortiz was absolutely correct in the calculation of PRESS from his code. The problem was that I forgot to place a minus in front of one of the numbers, so I got a slightly different answer. Independently with different code, I got the same answer as Antonio Trujillo-Ortiz, which was 22225.0575. I apologize for the mistake.

04 Oct 2009 press Prediction error sum of squares. Author: Antonio Trujillo-Ortiz Herrera, David

The correct answer is 22225.0, which is correctly stated in the comment section of this code. However, the code does not compute this. Revision needed to compute PRESS value.

04 Oct 2009 press Prediction error sum of squares. Author: Antonio Trujillo-Ortiz Herrera, David

This code does not give the correct answer to the problem stated in Response Surface Methodology by Montgomery & Myers, page 48, which is 22,225. This code gives 21265.2514 by the two different methods in the code. It needs revision. See output below (some variables were printed):
Calculation of PRESS
n = 14
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
r = 13, c = 3
PRESS = 21265.2514
hii = 0.358818
hii = 0.379259
hii = 0.323410
hii = 0.294624
hii = 0.094723
hii = 0.137715
hii = 0.142682
hii = 0.242150
hii = 0.236885
hii = 0.202703
hii = 0.209627
hii = 0.073729
hii = 0.225672
hii = 0.078004
2nd PRESS = 21265.2514
>>

22 Sep 2009 HotellingT2 Hotelling T-Squared testing procedures for multivariate samples. Author: Antonio Trujillo-Ortiz Marcin

I just checked one-sample (T2Hot1.m) using an example 13.3 from Armitage et al. Statistical Methods in Medical Research, ed. 4. The results are nearly the same, which is very good:
From book: T2=7.439, F=1.24 and P=0.39
From T2Hot1.m: T2=7.4315, F=1.2386 and P=0.3873

Very good job!

20 Aug 2009 RMAOV2 Repeated measures two-way analysis of variance test. Author: Antonio Trujillo-Ortiz Bach, Dominik

- I encountered negative SS values, and consequently negative Fs
- the output differed from SPSS output both with SS model II and III, and from rm_anova2.m that uses SS model III and gives the same results as SPSS

30 Jul 2009 adjPF Adjustment of the F statistic by Epsilon on Repeated Measures ANOVA. Author: Antonio Trujillo-Ortiz Claudia

Is it possible to couple this function to RMAOV1MS so that the returned p-value is corrected?
I want to use the adjustment in an univariate design with 2 groups measured across time, and I don't see how to apply this function to this data otherwise.
Thanks!

Claudia

24 Jul 2009 HZmvntest Henze-Zirkler's Multivariate Normality Test. Author: Antonio Trujillo-Ortiz Jimmel, Michael

Dear Prof. Antonio Trujillo-Ortiz,

Thanks for your quick reply. It was helpful. Now I understand. We need to get the LN-mean and LN-standard-deviation in order to get the mean ('mu') and standard deviation ('sqrt(si2)' ) from LNRVs.

Thank you very much/Muchos gracias,

Mike

23 Jul 2009 HZmvntest Henze-Zirkler's Multivariate Normality Test. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Dear Michael,
Thanks for your interest of this m-file. As you know, we only generated the Matlab computational algorithm from the original published paper. If you have any mathematical or statistical fundamentals inquiry you must refer to the author(s). I give you the Dr. Norbert Henze's email address
henze@stoch.uni-karlsruhe.de
and/or
N.Henze@math.uni-karlsruhe.de

However, we don't need the lognormal cdf (logncdf) neither the mean and variance of the lognormal distribution (longnstat) functions. For the used mean (mu) and variance (si2), which are the Henze-Zirkler mean and variance, must, as the author establish, to be converted to the lognormal Henze-Zirkler mean and variance. As you can see, using the provied Iris data example. The mean(mu)=0.7635 and variance(si2)=0.0112. With a Henze-Zirkler lognormal mean: -0.279408 and Henze-Zirkler lognormal variance: 0.1379069. But, if you try to use te mu and si2 values by the longnstat function, you get the incorrect lognormal values of 2.1459 and 5.7768e-004, respecively.

Yours,

Prof. Antonio Trujillo-Ortiz

23 Jul 2009 HZmvntest Henze-Zirkler's Multivariate Normality Test. Author: Antonio Trujillo-Ortiz Jimmel, Michael

Dear Sir Antonio,

Could you explain/describe the mean and standard deviation arguments to the Log normal cdf? Why not use 'mu' and 'sqrt(si2)' directly?

Thanks/Gracias,

Mike

21 Jul 2009 AnDartest Anderson-Darling test for assessing normality of a sample data. Author: Antonio Trujillo-Ortiz Kianfar, Jalil

Thanks a lot for this useful function, when I was using the functions this error occurred:

When the answer is “The sampled population is not normally distributed” this error happens:

Error in ==> AnDartest at 111
switch nargin

??? Output argument "AnDartest" (and maybe others) not assigned during call to "…\MATLAB\AnDartest.m (AnDartest)".

23 Jun 2009 outaovii Identification of outliers in a one-way analysis of variance model II (random effects). Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Hi zapp,

I think your rate is so rigourous, and twice (only one should be fine)...!!!

Recall that I'm not the author of the statistical procedure, but only of the Matlab function. So, I suggest you could contact the authors and statistically establish your point of views. Also it could be better you publish your deep statistical rejection.

Finally, are you sure what the procedure statistically does?

Yours,

Antonio Trujillo-Ortiz

23 Jun 2009 outaovii Identification of outliers in a one-way analysis of variance model II (random effects). Author: Antonio Trujillo-Ortiz zapp

it seems the only data it can take is the vector from the example inside the function.... ;(

23 Jun 2009 outaovii Identification of outliers in a one-way analysis of variance model II (random effects). Author: Antonio Trujillo-Ortiz zapp

04 Jun 2009 Levenetest Levene's test for homogeneity of variances. Author: Antonio Trujillo-Ortiz Farah

works easily and well. Thanks!

06 Apr 2009 McNemarextest McNemar's Exact Test. Author: Antonio Trujillo-Ortiz Kang, HR

Another mistake: 'b>d' --> 'c>b'
Then res==1 will mean sample 1 having more success, and res==-1 the opposite.

06 Apr 2009 McNemarextest McNemar's Exact Test. Author: Antonio Trujillo-Ortiz Kang, HR

There was a typo in the above comment:
the second 'if P>alpha' should be replaced with 'if P>alpha/2'

06 Apr 2009 McNemarextest McNemar's Exact Test. Author: Antonio Trujillo-Ortiz Kang, HR

It will be useful if output argument feature is added, like following:
function res = McNemarextest(v, t, alpha)
...
if t==1
 if P>alpha
  res = 0;
 else
  if b>d, res=1; else res=-1; end
 end
else
 if P>alpha
  res = 0;
 else
  res = 1;
 end
end

In this way, res will be:
in 2-tailed test, 0 if not significant, 1 if significant
in 1-tailed test, 0 if not significant, 1 if b>d significantly, -1 if b<d significantly.

20 Feb 2009 maov1 Computes a Multivariate Analysis of Variance for equal or unequal sample sizes. Author: Antonio Trujillo-Ortiz Ricardo

Congratulation !
Very good work !
R. Mansilla
UNAM

17 Feb 2009 latgsqr Analysis of variance by a latin or graeco-latin square design with or without replicates. Author: Antonio Trujillo-Ortiz Marcello

thanks for this. It is not very clear how to manage data matrix X

31 Jan 2009 latgsqr Analysis of variance by a latin or graeco-latin square design with or without replicates. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

We thank Alex Karandreas from the Department of Acoustics, Aalborg University, Denmark, for encourage us to include a graeco-latin example. This has been done.

Antonio Trujillo-Ortiz

30 Jan 2009 latgsqr Analysis of variance by a latin or graeco-latin square design with or without replicates. Author: Antonio Trujillo-Ortiz akaaka, aka

28 Jan 2009 Indicator matrix generation from survey questions. indicator matrix, multiple correspondence analysis, crosstabulation analysis, categorical analysis. Author: Antonio Trujillo-Ortiz Jos

Again, learn how to use the function ERROR.
Secondly, avoid growing variables inside a loop. Try to pre-allocate X

Finally, this one-liner does the same
X = full(sparse(repmat(1:size(table,1),numel(lcv),1).' , bsxfun(@plus,table,[0 cumsum(lcv(1:end-1))]) , 1))

but this might be indeed to cryptic, so split it up into sub-units. Also add error checks, e.g. using for instance any(bsxfun(@gt,table,lcv))

Also take a look into SUB2IND.

In short, there is still room for improvement.

26 Jan 2009 AnDartest Anderson-Darling test for assessing normality of a sample data. Author: Antonio Trujillo-Ortiz Jordan, Michael

15 Jan 2009 AnDartest Anderson-Darling test for assessing normality of a sample data. Author: Antonio Trujillo-Ortiz Jordan, Michael

10 Jan 2009 HZmvntest Henze-Zirkler's Multivariate Normality Test. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Dear Johan,

Your valuable comment (15-12-08)for this m-file runs much faster was taken into account. We thank you.
Antonio

05 Jan 2009 Indicator matrix generation from survey questions. indicator matrix, multiple correspondence analysis, crosstabulation analysis, categorical analysis. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Dear Jos. Thanks for your valuable comments for improve this m-file script. They were taken into account.

05 Jan 2009 Indicator matrix generation from survey questions. indicator matrix, multiple correspondence analysis, crosstabulation analysis, categorical analysis. Author: Antonio Trujillo-Ortiz Jos

You can use real input variables into your function, as in function x = indmatgen(lcv,table)? Also use the error function, instead of disp + return. Finally, pre-allocate your variables, and return b as an output directly, instead of copying it into x first.

15 Dec 2008 HZmvntest Henze-Zirkler's Multivariate Normality Test. Author: Antonio Trujillo-Ortiz Johan

Nice implemetation and sample data to test the file on. However, it runs a bit slow. I recompted the variable Djk by avoiding loops and it runs much faster:
Djk = - 2*Y' + diag(Y')*ones(1,n) + ones(n,1)*diag(Y')';
/J.D.

09 Dec 2008 latgsqr Analysis of variance by a latin or graeco-latin square design with or without replicates. Author: Antonio Trujillo-Ortiz akaaka, aka

would be nice to have an example on how to analyze a graecolatin square

04 Dec 2008 DagosPtest D'Agostino-Pearson's K2 test for assessing normality of a data vector. Author: Antonio Trujillo-Ortiz Basturk Akay, Bahriye

Thanks for implementing this function. it helped me a lot.

22 Oct 2008 AnDartest Anderson-Darling test for assessing normality of a sample data. Author: Antonio Trujillo-Ortiz Dag, Berrak

17 Oct 2008 RAFisher2cda Canonical Discriminant Analysis is a dimension-reduction technique related to PCA and CCA. Author: Antonio Trujillo-Ortiz Aragon, Gerardo

Good for my reserach

17 Oct 2008 RAFisher1 Discriminant analysis concerned with separating distinct sets of observations. Author: Antonio Trujillo-Ortiz Aragon, Gerardo

Works as it says!

12 Sep 2008 Fisherextest Fisher's Exact Probability Test. Author: Antonio Trujillo-Ortiz Cling, Ji

Michael, dispite your regular visits the 10 000 self dowloads continue.

(It is not an exagerated figure)
 

12 Sep 2008 Mskekur Mardia's multivariate skewness and kurtosis coefficients and its hypotheses testing. Author: Antonio Trujillo-Ortiz Azim, M.

18 Jul 2008 DagosPtest D'Agostino-Pearson's K2 test for assessing normality of a data vector. Author: Antonio Trujillo-Ortiz Navarro Pablo, Leandro

Thanks a lot. I have implemented it in my scripts and works nicely.

05 Jul 2008 HotellingT2 Hotelling T-Squared testing procedures for multivariate samples. Author: Antonio Trujillo-Ortiz Cling, Ji

Oh, little frog.
Make frequent 100th download leaps to keep that other one behind me!

06 Jun 2008 anxp Angle of the cross product of two vectors. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Hi Ahmed,
Suppose you have vectors on R^4, a=[1 2 5 7] and b=[5 0 3 4]. Then, c=4*a+2*b=[14 8 26 36]. Their norm, magnitud or length = norm(c)=47.2440

Antonio

15 May 2008 ACR Upper percentiles squared Mahalanobis distance critical value for test of single multivariate normal Author: Antonio Trujillo-Ortiz Procopiou, Andreas

05 May 2008 twostone Two-sample Student's t-test when one has only one observation. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Dear Jos,

I think that without greater preambles. The description and the explanation have always been incorporated in the twostone m-file. Statistically speaking, this function has nothing to do with the ttest. This is another Student's t-test approach.

Yours,

Antonio Trujillo-Ortiz

05 May 2008 twostone Two-sample Student's t-test when one has only one observation. Author: Antonio Trujillo-Ortiz x@y.z, Jos

Dear Antonio, I stand corrected. Maybe you can incorporate your explanation into your file and description?

05 May 2008 twostone Two-sample Student's t-test when one has only one observation. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Dear Jos,

Thanks for your note. But, please don’t confuse to the users. Your comment doesn’t have any statistical fundamental. You is refering to the one-sample Student’s t-test (ttest), of course comparing one sample mean with one hypothetical mean (expected), where the t-statistics is computed by,

t = (mean(x) – m)/se

where se = sqrt(var(x)/n)

The here proposed twostone m-file deals with two-sample when one of the samples has only one observation. Where,

1) m isn’t a mean, but an observation, for

2) the estimate standard error (se) is

se = sqrt(var(x)[(n+1)/n])

besides

3) the numerator of the t-statistic is

o – mean(x)

where o is the only one observation of one of the samples

Thus, for the next example (given in the twostone m-file)

x = 4.02 3.88 3.34 3.87 3.18 (sample with 5 observations)

y = 3.02 (sample with only one observation)

For this case, if you incorrectly use the ttest you get

t = 3.8303, with a se = 0.1666, and you should reject Ho

Using the adequate twostone m-file you get

t = - 1.5637, with a se = 0.4080, and you should accept Ho

So, this is not a matter of ‘form’, but of the correct statistical procedure.

Yours,

Antonio Trujillo-Ortiz

05 May 2008 twostone Two-sample Student's t-test when one has only one observation. Author: Antonio Trujillo-Ortiz x@y.z, Jos

since this function requires the stats toolbox, it is recommended to use the standard call to TTEST(X,M) where M is the single observation.

30 Apr 2008 epsGG Greenhouse-Geisser epsilon. Author: Antonio Trujillo-Ortiz youtubeline, youtube

thanks..
www.youtubeline.com

19 Apr 2008 RAFisher2cda Canonical Discriminant Analysis is a dimension-reduction technique related to PCA and CCA. Author: Antonio Trujillo-Ortiz Ban, Asim

awesome

26 Feb 2008 StuMaxtest Stuart-Maxwell's Test for Marginal Homogeneity. Author: Antonio Trujillo-Ortiz Trujillo-Ortiz, Antonio

Hi al key,

What really you mean with...'could not handle the situation that there as perfect matched row and column. '?

Your comment is very ambiguous and your rate its very strict. In order to correct some bugs, I'm awaiting for a more professional inquiry.

23 Feb 2008 Balancing Balancing of Chemical Reactions when the Reactions are Unknown. Author: Antonio Trujillo-Ortiz Gordon, Ashlry

 

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