Statalist The Stata Listserver


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

st: RE: RE: Replace missing values for pairs of variables


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Replace missing values for pairs of variables
Date   Wed, 10 May 2006 18:29:22 +0200

--- I wrote:
> forvalues 1 = 1/3 {
>         replace p`i' = 0 if p`i' == . & q`i' != .
>         replace q`i' = 0 if q`i' == . & p`i' != .
> }

Oops, the line -forvalues 1 = 1/3 {- should be replaced by -forvalues i = 1/3 {-

Sorry,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



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