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:
- 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).
Hope it helps!