Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: power calculation graphs

From   Roger Newson <>
To   "" <>
Subject   Re: st: power calculation graphs
Date   Fri, 20 Aug 2010 12:24:00 +0100

An alternative to -sampsi- would be to use the -powercal- package, downloadable from SSC. The -powercal- package has a .pdf manual (distributed as an ancillary file) to explain the methods and formulas. See Newson (2004), which you can download from

I hope this helps.

Best wishes



Newson R. Generalized power calculations for generalized linear models and more. The Stata Journal 2004; 4(4): 379-401.

Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

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

On 20/08/2010 12:06, Neil Shephard wrote:
On Fri, Aug 20, 2010 at 11:01 AM, Nikolaos Pandis<>  wrote:

I am aware of the sampsi family of commands, I just did not know how to write the do file in order to calculate all the different values from the -sampsi- to use for the graph.

You might benefit from taking a Stata Net Course then.

I'd start with 101, see

Or some of the resources at UCLA
as the use of loops is fairly common in programming Stata

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index