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

Re: st: RE: table command

From   Rijo John <>
To   <>
Subject   Re: st: RE: table command
Date   Fri, 18 Jun 2004 21:52:04 +0530 (IST)

 Thanks Dear Nick Cox.. that count and egen combination
is doing my job now.

Rijo John.

On Fri, 18 Jun 2004, Nick Cox wrote:

:-table-'s main job is to produce tables,
:not resultssets;
:as you don't like what -replace- does,
:your main option is to reproduce
:what -table- does by other means,
:egen count1 = count(var1), by(state)
:egen count3 = count(var3), by(state)
:gen newvar = count1 / count3
:Note that, necessarily, each value
:of these variables is repeated within
:groups of -state-. -egen, tag()- offers
:one handle here.

*   For searches and help try:

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