问题描述
这是我要运行的行:
m1 <- mlogit(choice ~ Mode+use+SM,data=dca_long)
这是返回的错误消息:
Error in if (abs(x - oldx) < ftol) { :
missing value where TRUE/FALSE needed
我已经在此处上传了dca_long:https://gofile.io/d/g1rqEo 看起来像这样:
> head(dca_long)
# A tibble: 6 x 9
ResponseId Question Response Mode use SM choice alt choice_logical
<chr> <int> <chr> <fct> <fct> <fct> <lgl> <fct> <lgl>
1 R_10GB4OAGuIp5… 1 Using Youtube on mobile for … Mobile Entertai… Youtube FALSE 2 FALSE
2 R_10GB4OAGuIp5… 2 Using Twitter on mobile for … Mobile Entertai… Twitter FALSE 2 FALSE
3 R_10GB4OAGuIp5… 3 Using Twitter on mobile for … Mobile Entertai… Twitter FALSE 2 FALSE
4 R_10GB4OAGuIp5… 4 Using Twitter on mobile for … Mobile Utility Twitter TRUE 1 TRUE
5 R_10GB4OAGuIp5… 5 Using Instagram on PC for en… PC Entertai… Instag… FALSE 2 FALSE
6 R_10GB4OAGuIp5… 6 Using Facebook on Mobile for… Mobile Entertai… Facebo… FALSE 2 FALSE
choice_logical现在是多余的。我已经尝试了所有有关此堆栈溢出错误的建议,但由于某种原因,我无法弄清楚必须对其数据进行哪些更改才能使其正常工作。
请帮助
谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)