Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: sample size calculation


From   Roger Newson <[email protected]>
To   [email protected]
Subject   st: Re: sample size calculation
Date   Mon, 26 Jan 2004 11:36:29 +0000

At 09:32 26/01/04 +0000, chris wallace <[email protected]> wrote:
I have been asked by a colleague for help to perform a sample size
calculation.  As this is not an area I'm familiar with, I was hoping
someone in this group might give me feedback to check I'm doing this
correctly.

My colleague plans to sample 2n people, randomized to treated and
untreated groups (each of size n).  A single baseline measurement of
four indicators will be taken from all individuals, and he has provided
expected means and standard deviations for these.  The treated group
will then be treated, and the measures repeated (again, he has provided
expected means and SDs for these).

He wants to be powered to show there is a change in the treated group,
but not the untreated.

He is not sure how best to analyse these data, but looking at the
documentation for sampsi, I note there are 3 common methods listed -
post, change, and ancova.  I assume all would be appropriate, though the
latter two more powerful.

So I need to do
sampsi mean_post_treatment mean_pre_treatment, sd1(sd_post_treatment)
sd2(sd_pre_treatment) pre(1) post(1) meth(all)
r01(corr_pre_post_treatment)

But then I also need to adjust for the multiple testing of four
measures.  As a conservative approach, I was planning to just append
alpha(0.0125)
to force a Bonferroni-type correction and maintain a overall 0.05
significance level.

I would appreciate any advice, particularly if I'm making some big
error!
What Chris's colleague really seems to need is expected within-group standard deviations of the post-treatment - pre-treatment difference. That way, he could carry out the power calculations so as to compare two groups of differences, and calculate confidence intervals and P-values for the difference between group mean differences. The variance of a post-treatment - pre-treatment difference is equal to

Var(pre_treatment_measure) + Var(post_treatment_measure) - 2*Cov(pre_treatment_measure,post_treatment_measure)

and is therefore low if post-treatment and pre-treatment measures on the same individual are positively correlated. If Chris's colleage assumes independence between pre-treatment and post-treatment measures, then he will probably err on the side of conservatism.

Chris might like to check out my -powercal- package, downloadable from SSC or from my website, which contains a manual giving some formulas for generalized power calculations.

I hope this helps.

Roger


--
Roger Newson
Lecturer in Medical Statistics
Department of Public Health Sciences
King's College London
5th Floor, Capital House
42 Weston Street
London SE1 3QD
United Kingdom

Tel: 020 7848 6648 International +44 20 7848 6648
Fax: 020 7848 6620 International +44 20 7848 6620
or 020 7848 6605 International +44 20 7848 6605
Email: [email protected]
Website: http://www.kcl-phs.org.uk/rogernewson

Opinions expressed are those of the author, not the institution.

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index