[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Re: r(198) error
From
Kit Baum <[email protected]>
To
[email protected]
Subject
st: Re: r(198) error
Date
Wed, 15 Aug 2007 07:39:17 -0400
Your expansion of the macro outfile_reg probably contains spaces plus
the word 'and'. You probably need to use compound double quotes
(q.v.) or use a directory without embedded spaces in its name on your
machine.
Kit Baum, Boston College Economics and DIW Berlin
http://ideas.repec.org/e/pba1.html
An Introduction to Modern Econometrics Using Stata:
http://www.stata-press.com/books/imeus.html
On Aug 15, 2007, at 2:33 AM, statalist-digest wrote:
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,
*
* 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 |