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

st: Re: r(198) error

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

Nirina F <> 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'

Dear Nirina,

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



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

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:

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