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

Re: st: statsby again


From   scott hankins <scott.hankins@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: statsby again
Date   Thu, 5 May 2005 14:54:49 -0400

I believe that what you are looking for is r(N). 

see "return list"

. count
 1925

. return list

scalars:
                 r(N) =  1925


scott


On 5/5/05, Sascha Robert <sascha.robert@iew.unizh.ch> wrote:
> After having learned quiet a lot from Nick W. telling me the trick
> 
> . statsby "ktau x y " TauB=r(tau_b) P=r(p) , by(z) saving(myfile)
> 
> for STATA 8 I am now trying something like
> 
> . statsby "count" c=r("???"), by(x y z) saving(myfile)
> 
> Well, I've seen the ktau.ado file... but there is no count.ado to check
> what "???" could be. Any hints?
> 
> Sascha
> 
> --
> ***** sascha robert | mailto: sascha.robert@iew.unizh.ch *****
> *
> *   For searches and help try:
> *   http://www.stata.com/support/faqs/res/findit.html
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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