- Simulate a large number of datasets from a known distribution (normal and non-normal) with the same sample size (N=7).
- Run the Lilliefors test on each simulated dataset.
- Determine the proportion of tests that correctly reject the null hypothesis when the data is non-normal (this gives you the power of the test).
statistical power of lillietest
8 ビュー (過去 30 日間)
古いコメントを表示
In order to asses normality of data, I run a lillietest on the following two variables A and B:
A B
0.000 0.125
1.500 0.125
2.375 1.125
2.375 0.125
5.625 0.250
4.250 0.000
0.750 0.000
p=0.37 p=0.008
H0=1 H0=0
Responses accept H0 for A and rejects H0 for B.
Given the small size of sample (N=7), how can I check the statistical power of this test? I see there is a function for this, called sampsizepwr . Is it the right function? In positive case, what type of argument 'testtype' should I furnish? 'z' 't' or 'p'? Thanks, Valerio
0 件のコメント
回答 (1 件)
Anshuman
2024 年 10 月 25 日 6:00
Hello,
To check the statistical power of the Lilliefors test, using a function like "sampsizepwr" in MATLAB would not be a good idea as this function is typically used for calculating sample sizes or power for hypothesis tests such as z-tests, t-tests, or proportion tests. It may not be directly applicable to the Lilliefors test for normality.
Here's what you can do:
Hope it helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Hypothesis Tests についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!