w*****1 发帖数: 473 | 1 To generate the statement like "given the sample size we have a %90 chance
of detecting an x percent or some unit difference of incidence of heart
defect between high fat and normal diet group at a p value of 0.05. the
sample size for high fat is 516, for normal diet is 2262. Could anyone help
me? I will give you a big baozi if you can help me with that. Thanks a lot! |
q******n 发帖数: 272 | 2 use Gpower, z test of two independent proportions. you need to specify % in
normal diet group. |
w*****1 发帖数: 473 | 3 can I use proc power for TWOSAMPLEFREQ chi-sq test? |
q******n 发帖数: 272 | 4 Sure.
proc power;
twosamplefreq test=pchi
proportiondiff = .
refproportion = 0.5
groupns = 516| 2262
power = 0.9;
run; |