MATLAB Answers

0

How to peform multiple paired-t tests

Asked by Yuzhen Lu on 18 Feb 2019
Latest activity Commented on by Star Strider
on 18 Feb 2019
To my knowledge
ttest.m
can be used to peform a single parired t test, e.g., ttest(x,y), and the function can also be used for mutiple paired t tests when it is called many times. I wonder if there are some functions for multiple paired ttests, e.g., among x1, x2, x3 and x4, without calling ttest.m many times?

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Star Strider
on 18 Feb 2019
 Accepted Answer

You need to be very careful doing multiple comparisons. See the documentation for this multcompare (link) function (there are two). It will likely do what you want.

  2 Comments

Is multcompare only applicable to unpaired tests?
That would certainly be appropriate, since paired tests are best used with the repeated measures implementation of multcompare (link). (I missed the fact that you are performing paired tests in your original post.)

Sign in to comment.