Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: Detect use of svy: prefix


From   Richard Williams <[email protected]>
To   [email protected], <[email protected]>
Subject   Re: st: RE: Detect use of svy: prefix
Date   Wed, 25 May 2011 12:49:12 -0500

At 11:25 AM 5/25/2011, David Radwin wrote:
It seems to be the case that e(prefix) will include the value "svy" after
running a svy: command. So you could try something like this

. if strpos("`e(prefix)'","svy")==0 error

adding an error number if you care to.

Thanks David. However, I don't think e(prefix) is ereturned until after your program has been run, so I don't think that works.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index