Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: file name problem with stata2mplus


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: file name problem with stata2mplus
Date   Mon, 20 Dec 2010 19:53:39 +0000

Please see 

<http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalist.1012/date/article-749.html> 

for better advice and the Statalist FAQ for suggestions on etiquette here, specifically 

<http://www.stata.com/support/faqs/res/statalist.html#relation> 

Nick 
[email protected] 

Laura Gibbons

I would hack the program.

Change line 40 to:

   outsheet using "`using'.dat" , comma nonames nolabel `replace'

On Mon, 20 Dec 2010, Evelyn Ersanilli wrote:

> I've been experiencing some problems with converting a file from Stata to Mplus using the 'stata2mplus' command
> The problem is that the command does not seem to accept spaces in the destination file/folder name.
> The normal Stata strategy of using quotation marks doesn't seem to work
> I've tried:
>
> stata2mplus using  "C:\My Documents\Pilot 2" , replace
> invalid 'Documents'
> r(198);
>
> stata2mplus using  (C:\My Documents\Pilot 2)
> invalid 'C'
> r(198);
>
> . stata2mplus using  ``C:\My Documents\Pilot 2"
> invalid '`'
> r(198);
>
> . stata2mplus using  `C:\My Documents\Pilot 2"
> invalid 'C'
> r(198);
>
> . stata2mplus using  "C:\My Documents\Pilot 2"
> invalid 'Documents'
> r(198);
>
> I've found a work-around by putting the file on a USB stick so that I can lose the 'My Documents' part, but I feel that there must be a better way.

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index