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 |
Leny Mathew <lenymathewc@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

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

Date |
Mon, 20 Dec 2010 16:40:39 -0500 |

I've always had the same problem when merging files. I get around it by creating a data folder under C:. So all my data sets are C:\Data\mydataset\file1 No spaces in the folder names, so no errors! On Mon, Dec 20, 2010 at 4:21 PM, Michael N. Mitchell <Michael.Norman.Mitchell@gmail.com> wrote: > Greetings > > Indeed, Anders has identified the exact issue... My practice was to save > the file into the same folder, just specifying a file name, and never bumped > into this. However, this is a better way to approach this and I have asked > the kind people at UCLA ATS stat consulting to update the program when they > have a chance. > > In the meanwhile, you can store the file into the current folder (by just > specifying a file name) and then you could use the -copy- command to copy > the file to another location as needed. > > 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/ > * * 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:*Sergiy Radyakin <serjradyakin@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>

**Re: st: file name problem with stata2mplus***From:*"Michael N. Mitchell" <Michael.Norman.Mitchell@gmail.com>

- Prev by Date:
**Re: st: file name problem with stata2mplus** - Next by Date:
**Re: st: -predict , reffects- after -xtmelogit-** - Previous by thread:
**Re: st: file name problem with stata2mplus** - Next by thread:
**Re: st: file name problem with stata2mplus** - Index(es):