Statalist


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

st: macro and twoway graph


From   moleps islon <[email protected]>
To   [email protected]
Subject   st: macro and twoway graph
Date   Thu, 25 Jun 2009 17:55:54 +0200

Dear listers,
For some reason I cannot respond to responses to my posting yesterday.
Bare with me if the responses appear later.

I´ve rephrased the problem that I cannot come to grips with.

set obs 500
gen r=_n
gen t=runiform()
egen q=mean(t)


tw (line t r, sort) (line q r,sort)-->works fine

local r="(line t r, sort)"
local y="(line q r,sort)"

. di "`y'"
(line q r,sort)

. di "`r'"
(line t r, sort)

. local m "`y' " "`r'"

. di "`m'"
(line q r,sort) (line t r, sort)

. tw "`m'"
line        ( is not a twoway plot type
r(198);


What is the correct positioning of the " ´ and `in this problem???

Moleps

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