Will MATLAB function samplesizepwr work with paired t-test
Afficher commentaires plus anciens
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!
Réponses (1)
the cyclist
le 20 Mar 2021
1 vote
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.
Catégories
En savoir plus sur Hypothesis Tests dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!