楼主: wumingji
11295 18

[实际应用] Mplus 的DATA到底应该怎么写?为什么怎么写都说找不到呢? [推广有奖]

  • 0关注
  • 0粉丝

等待验证会员

高中生

37%

还不是VIP/贵宾

-

威望
0
论坛币
456 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
231 点
帖子
14
精华
0
在线时间
25 小时
注册时间
2015-6-1
最后登录
2020-5-12

5论坛币
Mplus小白求教,做分析的时候,最后总是说找不到文件,到底DATA部分应该怎么写呢?
*** ERROR in DATA command
  The file specified for the FILE option cannot be found.  Check that this
  file exists:  C:\Users\17720\桌面\proposal160710版\passion.dat



*** ERROR in DATA command
  The file specified for the FILE option cannot be found.  Check that this
  file exists:  passion.dat

最佳答案

南南数据 查看完整内容

你把data文件和inp文件放在同一个文件夹之后,就省去很多容易写错的路径了。直接 “Data: File is XX.dat;”
关键词:Mplus PLUS Data MPL Plu Mplus DATA 输入
沙发
南南数据 发表于 2016-8-21 01:55:34 |只看作者 |坛友微信交流群
你把data文件和inp文件放在同一个文件夹之后,就省去很多容易写错的路径了。直接 “Data: File is XX.dat;”

使用道具

藤椅
Lisrelchen 发表于 2016-8-21 02:44:13 |只看作者 |坛友微信交流群
Just for your reference:
http://www.statmodel.com/discussion/messages/22/652.html?1115559889
Linda K. Muthen posted on Saturday, May 07, 2005 - 5:05 pm

That is not what it says. Following is what it says: "The FILE option is used to give the name of the file that contains the names of the multiple imputation data sets to be analyzed." So the names should be in a file. You should not list all of the names using the FILE option. If you look at the example, there is one file name, imput.dat. The file imput.dat contains the names of the data sets and this is shown in the example.

使用道具

板凳
wumingji 发表于 2016-8-21 15:19:43 |只看作者 |坛友微信交流群
南南数据 发表于 2016-8-21 01:55
你把data文件和inp文件放在同一个文件夹之后,就省去很多容易写错的路径了。直接 “Data: File is XX.dat;” ...
解决了,谢谢

使用道具

报纸
河马马 发表于 2017-12-26 11:53:50 |只看作者 |坛友微信交流群
南南数据 发表于 2016-8-21 01:55
你把data文件和inp文件放在同一个文件夹之后,就省去很多容易写错的路径了。直接 “Data: File is XX.dat;” ...
我把data文件和inp文件都放在同一个文件夹了,这个错误还是不能解决,求大神帮忙
已有 1 人评分经验 收起 理由
bfzldh + 6 鼓励积极发帖讨论

总评分: 经验 + 6   查看全部评分

使用道具

地板
bfzldh 学生认证  发表于 2017-12-26 12:31:39 |只看作者 |坛友微信交流群
河马马 发表于 2017-12-26 11:53
我把data文件和inp文件都放在同一个文件夹了,这个错误还是不能解决,求大神帮忙
请详细贴出你的语句,并贴出你的文件夹截图,以清楚描述你的问题

使用道具

7
cdx1217 发表于 2018-6-12 21:39:32 |只看作者 |坛友微信交流群
wumingji 发表于 2016-8-21 15:19
解决了,谢谢
Mac的inp文件在哪里啊?

使用道具

8
cheny522@163 发表于 2018-10-2 23:21:38 |只看作者 |坛友微信交流群
很弱智的一个问题,但是不得不问,如何把data文件和inp文件都放在同一个文件夹啊?

使用道具

9
Eason512 发表于 2019-6-5 10:49:22 |只看作者 |坛友微信交流群
南南数据 发表于 2016-8-21 01:55
你把data文件和inp文件放在同一个文件夹之后,就省去很多容易写错的路径了。直接 “Data: File is XX.dat;” ...
您好,我也遇到这个问题,烦请解答一下,感恩。

使用道具

10
runboyrun 发表于 2019-9-22 16:14:26 |只看作者 |坛友微信交流群
刚才遇到了同样的问题找不到文件的路径,因此尝试找到正确的路径。方法:在search中输入终端,打开终端页面,将.dat的文件拖入终端页面中,然后就看到页面显示文件的地址。但是这可能还不是完整的地址,还需要右键你的文件,选择显示简介,看到位置这一栏是否与终端页面位置相一致。
例:以我自己的数据为例,1.在search中输入终端,将文件拖入终端页面中,显示文件的地址为
WechatIMG5.jpeg
2.右键文件点击显示简介,看到文件的位置。
屏幕快照 2019-09-22 下午4.07.47.png

3.所以, DATA: FILE= Macintosh HD:/Users/data/data 11.dat;

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-27 06:04