| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Size of a global
Dear all,
I am trying to create a global but for some reason it does not really
read it.
I have an example below of what is happening. The first global $xvar is
working but when I increase its size, as in global $var2 it does not
work properly anymore.
I checked the global size limit and I am not close to it, so I do really
know what's happening.
Any help appreciated.
Thank you very much
Manos
---------Begin example----------
clear
use auto
qui tab mpg, gen(dmpg)
qui tab trunk, gen(dtrunk)
# delimit ;
global xvar="dmpg2 dmpg3 dmpg4 dmpg5 dmpg6 dmpg7 dmpg8 dmpg9 dmpg10
dmpg11 dmpg12
dmpg13 dmpg14 dmpg15 dmpg16 dmpg17 dmpg18 dmpg19 dmpg20 dmpg2";
# delimit cr;
reg price $xvar
# delimit ;
global xvar2="dmpg2 dmpg3 dmpg4 dmpg5 dmpg6 dmpg7 dmpg8 dmpg9 dmpg10
dmpg11 dmpg12
dmpg13 dmpg14 dmpg15 dmpg16 dmpg17 dmpg18 dmpg19 dmpg20 dmpg21 dtrunk2
dtrunk3 dtrunk4
dtrunk5 dtrunk6 dtrunk7 dtrunk8 dtrunk9 dtrunk10 dtrunk11 dtrunk12
dtrunk13 dtrunk14 dtrunk15
dtrunk16 dtrunk17 dtrunk18";
# delimit cr;
reg price $xvar2
--------End example-------------
*
* 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/