多分类逻辑回归:Error in MASS:polr(as.formula(fml), weights = WD[, var weight], data = WD, :attempt to find suitable starting values failed

20250412181243200-image

报错原因:

因变量应该为数值,而不能是字符串

解决方法:

将因变量转编码为数值

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容