Will MATLAB function samplesizepwr work with paired t-test

4 visualizaciones (últimos 30 días)
Padma Naveena Ganapam
Padma Naveena Ganapam el 20 de Mzo. de 2021
Comentada: Padma Naveena Ganapam el 21 de Mzo. de 2021
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!

Respuestas (1)

the cyclist
the cyclist el 20 de Mzo. de 2021
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.

Community Treasure Hunt

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

Start Hunting!

Translated by