Hi guys, just learning the ropes with STATA over the last few months but I've hit a stumbling block.
I want to make two different sample size calculations:
How does this factor in to my sample size calculation?
I can obviously foresee it will increase the sample size needed to acheive a given power, but how do I exactly calculate this in STATA?
I want to make two different sample size calculations:
- first one relates to a cohort study endpoint which is binary
- I know the the outcome proportion in the control group, the difference I want to detect, the alpha and the desired power
- power twoproportions x y, test(chi2)
- second one relates to a cohort study endpoint which is continuous
- I know the the outcome mean in the control group (and the standard deviation), the difference I want to detect, the alpha and the desired power
- power twomeans x y, sd(z)
How does this factor in to my sample size calculation?
I can obviously foresee it will increase the sample size needed to acheive a given power, but how do I exactly calculate this in STATA?

Comment