On Jan 13, 2009, at 3:09 PM, Erika Morris wrote:
I would appreciate your help with the outreg2 command. I have used
this command in the past without trouble; however, I recently upgraded
to Stata 10.1 and am now encountering difficulties. If I specify an
output file path and name that has any spaces in it, and also specify
a file type for the outreg2 command (e.g. excel or text), I get an
error message.
Example:
. outreg2 using "C:\Documents and Settings\emorris\My
Documents\results", excel auto(3) replace
invalid 'and'
r(198);
I don't use -outreg(2)- myself, but you might want to start by using
forward slashes (/) instead of backward slashes (\) in your path.
Using backward slashes can occasionally cause problems; Stata
converts all forward slashes to the delimiter appropriate for your
operating system. (I'm not claiming this will definitively address
your problem, however, but it is good practice if nothing else.) See
also <http://www.stata-journal.com/sjpdf.html?articlenum=dm0017>.
Hope this helps,
Mike
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/