How do you change the alpha value for a sampsizepwr test?
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Akansha Saxena
2017-7-31
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)
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!