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

st: RE: Re: A problem with egen??

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Re: A problem with egen??
Date   Wed, 4 May 2005 00:50:46 +0100

This isn't the problem. Underneath 
the different syntax, these have
identical effects, setting aside 
side-effects on sort order. 

[email protected] 

George M Hoffman MD
> you are repeating the egen on the whole sample, as you found out.
> you want to have the 'by' as a modifier of egen. 
> try:
> egen X_5 = pct(X), by(country)

*   For searches and help try:

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