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

st: pass quotes in a local macro

From   moleps islon <>
Subject   st: pass quotes in a local macro
Date   Sat, 27 Jun 2009 00:18:31 +0200

Dear listers,
I´m trying to expand a local string for every category of another
variable and generate custom tickmarks and labeling on a graph. The
problem is that I do not understand how to pass quotes in a macro for
-xlabel- to understand it.

foreach var in `w'{
	local zar=(`za'+(o+1)*(`gt'))
	local xt `xt' `zar' ----here I´d like to pass -quote-`var' quote..
however I cannot figure out how to do this without getting error
	local ++gt

tw `q', xtitle(`3') xlabel(`xt´) ytitle(`1') name(`1',replace)
legend(subtitle(`2')) legend(`z')

also -how can I pass the valuelabels for the different cateogires of var- ??



*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index