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

st: generate if [exp], otherwise


From   "Mark Clatworthy" <[email protected]>
To   <[email protected]>
Subject   st: generate if [exp], otherwise
Date   Thu, 12 Aug 2004 09:24:49 +0100

I would like to generate a newvar which is equal to variable y +1 if variable x
is less than 5, but equal to variable y if variable x is greater than 5.  




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