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

Re: st: collapse _all by

From   Fred Wolfe <>
Subject   Re: st: collapse _all by
Date   Sun, 22 Sep 2002 18:48:04 -0500

At 05:50 PM 9/22/2002 -0700, you wrote:
I want to collapse a large number of variables by tract, i.e.

. collapse (sum) _all, by(tract)

Naturally, stata complains that tract is included in _all:

tract may not be both target and by()

Any clever way around that?
Check out -order- to move tract to the front. The collapse var2-varlast, by(tract(.

Fred Wolfe

---------------------------------------------------------------------------- ------------------------
Fred Wolfe Tel (316) 263-2125
National Data Bank for Rheumatic Diseases Fax (316) 263-0761
Wichita, Kansas
---------------------------------------------------------------------------- -------------------------

* For searches and help try:

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