If you want to see what was typed for the option, you also need double
quotes, not just the single quotes for macro expansion:
display "`preffect'"
Michael Blasnik
[email protected]
----- Original Message -----
From: "DOMINIC MUSTON" <[email protected]>
To: <[email protected]>
Sent: Tuesday, May 18, 2004 3:00 PM
Subject: st: RE: Syntax syntax
> Thanks for that Nick. (And so quick too!) I'm afraid I made a rather
> crucial typo in my email. The command that follows "syntax ..." is
> actually:
>
> display `preffect'
>
> ie: with the quotes.
>
> Any suggestions?
>
> Dominic
>
> From "Nick Cox" <[email protected]>
> To <[email protected]>
> Subject st: RE: Syntax syntax
> Date Tue, 18 May 2004 19:40:09 +0100
>
> --------------------------------------------------------------------------
------
>
> After this syntax, what is specified
> in -preffect()- will be visible as `preffect'.
> This will be a string (emphatically not
> a string variable). The ` ' are essential.
>
> di preffect
>
> by itself will be interpreted as
> a reference to a variable -preffect-,
> in fact to -preffect[1]-, which evidently
> you don't have.
>
> If you don't have anything compulsory before
> the options the syntax should be
>
> syntax [, PREffect(string)]
>
> Nick
> [email protected]
>
*
* 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/