[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
If you do programming, NC151 will be useful (see a recent announcement
on this list).
Eva
2008/10/6 Jacob Wegelin <[email protected]>:
>
> Is there a way to check whether a variable is already defined, already
> exists? I'd like to write code of the following sort:
>
>
> if (variable called performance is not yet defined) {
> gen performance=.
> }
> replace performance=5 if name=George
>
> Thanks for any ideas
>
> Jake
>
> Jacob A. Wegelin
> [email protected] Assistant Professor
> Department of Biostatistics
> Virginia Commonwealth University
> 730 East Broad Street Room 3006
> P. O. Box 980032
> Richmond VA 23298-0032
> U.S.A. http://www.people.vcu.edu/~jwegelin
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* 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 |