Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Re: r(198) error


From   "Vorell, Matthias" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Re: r(198) error
Date   Wed, 15 Aug 2007 14:09:58 +0200

Nirina F <[email protected]> wrote:

>Hi everyone,
>
>Could anyone let me know what is wrong with the following do. file to give me an invalid 'and' r(198).
>
>
>/*foreach x of varlist $LHS {;
>local xtitle "`x' OLS"   ;
>  local outfile_reg "$dataloc/Results/reg_`x'"  ;  regress  `x' $RHS, robust;
>    outreg using "`outfile_reg'", ctitle("`xtitle'") append; }; */;
>
>invalid 'and'
>r(198);

Dear Nirina,

I think typing ${dataloc} instead of $dataloc will solve your problem...

Cheers,

        Matthias

Rheinisch-Westfälisches Institut für Wirtschaftsforschung e.V. (RWI Essen)
Hohenzollernstr. 1-3
D-45128 Essen

Phone: +49-201-8149-0
Fax: +49-201-8149-200
Web: www.rwi-essen.de

Executive Board/Vorstand: Prof. Dr. Christoph M. Schmidt, Ph.D. (Präsident), Prof. Dr. Thomas K. Bauer, Prof. Dr. Wim Kösters
Registration-No./VR 1784 beim Amtsgericht Essen



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