Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

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

From |
"Michael N. Mitchell" <Michael.Norman.Mitchell@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: file name problem with stata2mplus |

Date |
Mon, 20 Dec 2010 13:21:23 -0800 |

Greetings

Best regards, Michael N. Mitchell Data Management Using Stata - http://www.stata.com/bookstore/dmus.html A Visual Guide to Stata Graphics - http://www.stata.com/bookstore/vgsg.html Stata tidbit of the week - http://www.MichaelNormanMitchell.com On 2010-12-20 7.29 AM, Anders Alexandersson wrote:

Evelyn, I can reproduce the problem using Stata/SE 11.1 for Windows (32 bit). The -stata2mplus- command is a user-written program by Michael Mitchell. You may also want to consider the user-written command -runmplus-. There appears to be a small problem in -stata2mplus- on line 40 which, I think, should read: outsheet using "`using'.dat" , comma nonames nolabel `replace' Your workaround was good because it was simple and it worked. You should be able to rename directories (folders) and files without having to use a USB stick. Another workaround is to fix the code on line 40. If you do this, then I suggest you also rename the program on lines 7 and 8 to something else, for example to -stata2mplus2-, and add a comment at the top. You would then use the modified program. Anders Alexandersson andersalex@gmail.com On Mon, Dec 20, 2010, Evelyn Ersanilli<evelyn.ersanilli@qeh.ox.ac.uk> 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); [...] 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. Any suggestions?* * 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/

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

**Follow-Ups**:**Re: st: file name problem with stata2mplus***From:*Leny Mathew <lenymathewc@gmail.com>

**References**:**st: file name problem with stata2mplus***From:*Evelyn Ersanilli <evelyn.ersanilli@qeh.ox.ac.uk>

**Re: st: file name problem with stata2mplus***From:*Anders Alexandersson <andersalex@gmail.com>

- Prev by Date:
**Re: st: Suppress labeling of categorical axis values in graph bar/hbar** - Next by Date:
**Re: st: file name problem with stata2mplus** - Previous by thread:
**RE: st: file name problem with stata2mplus** - Next by thread:
**Re: st: file name problem with stata2mplus** - Index(es):