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

st: RE: RE: RE: parmby if=exp for strings


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: parmby if=exp for strings
Date   Wed, 14 Jul 2004 19:28:19 +0100

You must use `" "' 

that is, 

` left single quote 
" double quote 
whatever text 
" double quote 
' right single quote. 

Nick 
[email protected] 

Douglas Crawford
 
> Thanks Nick, I have read but little understood the quotation nesting
> guidelines.
> 
> I tried your suggestion, but when I surround the double 
> quotes with `' the
> command is not executed.  And when I tried the same on the 
> quotes for the
> two string variables (e.g. inlist(var3, `"string1"', 
> `"string2"')) it said
> "too few quotes").
> 
> I can get the results I need with by encoding the string 
> variable, but if
> you see my error it may really help in the future (and 
> simplify these do
> files as well).

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