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

Re: st: newbie if {} else {} question


From   Bill Rising <[email protected]>
To   "Stata Listserve" <[email protected]>
Subject   Re: st: newbie if {} else {} question
Date   Thu, 19 Sep 2002 16:58:17 -0400

On 9/19/02 15:52, Bill Rising wrote

>On 9/19/02 15:26, Richard Herrell wrote
>
>>I've just started learning Stata syntax after long years of SAS use [snip...]
>
>This construction would work better as

... and of course the following is wrong, as all I thought about was the

>if xxx {
> blah blah
[garbage]

>
>A better way around this would be to try
> gen ascertgp = 4 - promig*2 - probip 

this answer.

I'm embarrased.

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