Hi Statalist
Question:
Is anyone able to tell me what the code is for calculating the sample size for a two independent group baseline adjusted 'ANCOVA' design using one of the newer Power and Sample Size commands?
Background:
Many randomised controlled trials with a continuous outcome adjust for the same variable measured at baseline. This analysis, known as analysis of covariance (ANCOVA), has the advantage of a gain in efficiency so that the required sample size equals the sample size for a independent t-test multiplied by (1 - r2), where r = the correlation between the baseline and follow-up measures.
(r is also known sometimes as the intraclass correlation coefficient (ICC) or test-retest correlation). [Ref https://doi.org/10.1016/j.jclinepi.2006.02.007]
Stata used to use (and still accepts) the sampsi command to calculate the sample size required for this design. For example the following command would be used for a two-arm parallel group trial looking to detect a difference of 4 points between Control and Treatment groups, with a common standard deviation of 15 points and r of 0.8, and with power .9 at a two-sided alpha of 0.5.
The output from this command is very informative, and gives the sample sizes for analysis using; follow-up measurements only (POST), change in measures between baseline and follow-up (CHANGE), and follow-up measurements with baseline adjustment (ANCOVA).
Thanks very much,
Jonathan
Question:
Is anyone able to tell me what the code is for calculating the sample size for a two independent group baseline adjusted 'ANCOVA' design using one of the newer Power and Sample Size commands?
Background:
Many randomised controlled trials with a continuous outcome adjust for the same variable measured at baseline. This analysis, known as analysis of covariance (ANCOVA), has the advantage of a gain in efficiency so that the required sample size equals the sample size for a independent t-test multiplied by (1 - r2), where r = the correlation between the baseline and follow-up measures.
(r is also known sometimes as the intraclass correlation coefficient (ICC) or test-retest correlation). [Ref https://doi.org/10.1016/j.jclinepi.2006.02.007]
Stata used to use (and still accepts) the sampsi command to calculate the sample size required for this design. For example the following command would be used for a two-arm parallel group trial looking to detect a difference of 4 points between Control and Treatment groups, with a common standard deviation of 15 points and r of 0.8, and with power .9 at a two-sided alpha of 0.5.
Code:
sampsi 0 4, sd(15) r01(0.8) pre(1) post(1)
Thanks very much,
Jonathan
Comment