How do you change the alpha value for a sampsizepwr test?

7 views (last 30 days)
I have a statistics problem I am trying to solve with MATLAB. In the problem, there are two independent means being compared, a given power, standard deviation, and alpha value; the problem is to solve for the sample size of the data. I'm using the function sampsizepwr with a 'z' test, but the default for this function uses an alpha of .05; I need to use .01 and I don't know how I can change this value

Answers (1)

Akansha Saxena
Akansha Saxena on 31 Jul 2017
Alpha can be entered as a Name Value pair argument.
After entering all the input arguments include 'Alpha' followed by the value. eg:
nout = sampsizepwr('z',[mean1 std],mean2,pwr,[],'Alpha',0.01)

Community Treasure Hunt

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

Start Hunting!