フィルターのクリア

power function non-pooled t-test

2 ビュー (過去 30 日間)
LeNa
LeNa 2019 年 9 月 24 日
回答済み: Saket Chirania 2020 年 6 月 4 日
Hi,
I try to plot the power function of a non-pooled t-test.
Is there a chance to modify sampsizepwr to get a non-pooled t2-test instead of a pooled one?

回答 (1 件)

Saket Chirania
Saket Chirania 2020 年 6 月 4 日
Hi Lena,
We can use the samsizepwr command for the respective testtypes:
  • '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.
For more information you can refer the link - Sample size and power of test

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by