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

st: Re: r(198) error

From   Kit Baum <>
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
An Introduction to Modern Econometrics Using Stata:

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'
Thank you,
*   For searches and help try:

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