How to implement the function bootstrp to obtain a plot of the power regarding the number of observations of a statistical test

1 view (last 30 days)
Hi,
I am doing experiments on human subjects where they have to perform a piloting task. Their performance is rated by measuring the distance between their trajectory and the center of targets in the sky. I have 8 subjects for the test condition and 8 subjects for the control condition. My data are non-parametric and independent. I am analyzing the statistical difference with a Wilcoxon Rank Sum test in Matlab (ranksum). However, I would like to know what is the power of my test and how many subjects I would need to have a given power. As my data don’t follow a normal distribution (non-parametric), I cannot use the Matlab function sampsizepwr. I found in some studies that we could do a bootstrap analysis to obtain a plot of the power regarding to the number of subjects. Matlab has the function bootstrap but I don't understand how to implement it. Does anyone know how to use bootstrap with Matlab to compute the power as a function of the sample size for non-parametric and independent data?
Thank you for your help!
Carine

Answers (0)

Community Treasure Hunt

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

Start Hunting!