Statalist


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

Re: st: r(198) error


From   David Kantor <kantor.d@att.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: r(198) error
Date   Tue, 14 Aug 2007 10:43:27 -0400

At 08:28 AM 8/14/2007, Nirina 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);
Thank you,

Nirina
It's hard to say what the cause is, given this small sample of code. It looks like the entire sample is commented out, so the cause may be what preceded this code sample.
--David

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index