Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: counting replacements?


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: counting replacements?
Date   Fri, 30 Mar 2007 13:22:43 -0400

I have complained about this same thing at the last couple of NASUG meetings and the Stata folks said they will look into it, but didn't like the options of putting the result in s() or c() like I suggested -- clearly r() could cause problems. It just seems that if it shows up on the screen, it should be accessible.

Instead, I often need to add a count command like you did, which becomes an execution time concern when dealing with large datasets (1 million records).

Michael Blasnik

----- Original Message ----- From: "M Hollis" <[email protected]>
To: <[email protected]>
Sent: Friday, March 30, 2007 12:22 PM
Subject: Re: st: counting replacements?


<snip>

. sysuse auto
. replace price=-3 if foreign==1
(22 real changes made)

Is there a way to access this 22 value?  It seems
uncharacteristic of Stata to provide data in the
output that is not available as a return value.

MH
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index