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

Re: st: statsby and weights

From   Roger Newson <[email protected]>
To   [email protected]
Subject   Re: st: statsby and weights
Date   Tue, 25 Jan 2005 14:30:47 +0000

At 23:54 24/01/2005, Holly Krier  wrote:

Is there a version of statsby that accepts weights?

Unfortunately, no. However, there is a workaround which should solve Holly's problem. There was a thread on this subject on Statalist in March 2004, and the workaround (thanks to Jeff Pitblado) can be found on the Statalist Archive on

The trick is to wrap your command (with weights) in a program which does not have any weights of its own but which uses them internally to call the command you really wanted to use with -statsby-.

I hope this helps.


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]

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

* For searches and help try:

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