Statalist The Stata Listserver

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

Re: st: counting replacements?

From   "Michael Blasnik" <>
To   <>
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" <>
To: <>
Sent: Friday, March 30, 2007 12:22 PM
Subject: Re: st: counting replacements?


. 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.

*   For searches and help try:

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