Will MATLAB function samplesizepwr work with paired t-test

10 次查看(过去 30 天)
Hello
I want to do sample size and power analysis. I am confused about using the function samplesizepwr with a paired t-test.
in the help section for the samplesizepwr function the input arguments for the test type are:
Test type, specified as one of the following.
  • 'z' z-test for normally distributed data with known standard deviation.
  • 't' t-test for normally distributed data with unknown standard deviation.
  • 't2' — Two-sample pooled t-test for normally distributed data with unknown standard deviation and equal variances.
  • 'var' — Chi-square test of variance for normally distributed data.
  • 'p' — Test of the p parameter (success probability) for a binomial distribution. The 'p' test is a discrete test for which increasing the sample size does not always increase the power. For n values larger than 200, there may exist values smaller than the returned n value that also produce the specified power.
My data is a paired t-test does the test type t2 still apply in this case?
Please throw some light on this.
Thank you!

回答(1 个)

the cyclist
the cyclist 2021-3-20
I read through the documentation, and I don't see any mention of calculating power for a paired t-test. Maybe there is a way, but it is not clear to me.
FYI, I will often use the free program G*Power to calculate statistical power. I have checked it against MATLAB is equivalent cases, and I have confidence in it.

类别

Help CenterFile Exchange 中查找有关 Hypothesis Tests 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by