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

st: Efficient coding with -replace-

From   Michael McCulloch <[email protected]>
To   Statalist <[email protected]>
Subject   st: Efficient coding with -replace-
Date   Sun, 5 Oct 2008 07:57:11 -0700

As part of a data audit, I'm recording some changes in my project do-file. Would there be a more efficient way to code the following changes, all of which involve the same observation?

replace month = 1 if id==80
replace year = 1996 if id==80
replace failed= 1 if id==80

Thank you kindly.

Best wishes,
Michael McCulloch

Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
[email protected]
* For searches and help try:

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