排序
Error in names(x) <- value :'names' attribute [4] must be the same length as the vector [0]
【报错原因】 自变量没填 【解决方法】 填写自变量
Error in validate_param_range(pm$get para value(“maxdepth”),maxdepth”,lues is required! for theNote, for automatic parameter tuning, a reasonable range of vmaxdepth parameter, input 200,300
报错原因:通常为参数的范围设置错误,一般是选择了自动调参但却没有设置正确的参数范围解决方法:例如Maxdepth的参数,应该设置为200,300表示从200到300之间逐个参数去遍历
Error in as.POSlXct.numeric(ret):’origin’h◆◆◆ø◆
报错原因:ieu数据库的服务器不稳定,可能是偶然无法请求,也可能是长期无法请求解决方法:(1)更新Token后,使用相同的参数反复重新运行(2)以上方法无法解决,则建议使用MR分析的本地计算方...
自变量共线性筛查VIF:使用相关分析检查绝对相关的变量,去除相关系数为1的其中一个变量
报错原因:个别变量之间得相似性极高,甚至达到1,导致无法计算方差解决方法:可以用相关分析检查相关性,排除相关性很高得变量
SHAP解释器SE:Error in permshap.default(model rr, X= train set, feature names = xvars, : Permutation SHAP only supported for up to 14 features
报错原因:该模型最多支持14个特征进行shap计算解决方法:压缩特征数量
Error in step(model, direction = c(method_direction)) :行数有变化:是不是删除了遺漏值?
【报错原因】变量里含有空值【解决方法】删除空值或者插补空值
Error in onestrat(x[index, , drop=FALSE], clusters[index], nPSU[index][1], : Stratum(122) has only one PSU at stage 1
【报错原因】 调查设计的PSU孤立没打钩 【解决方法】 调查设计的PSU孤立打钩
Error in qgrubbs(q, n, type, rev = TRUE) : n must be in range 3-30
【报错原因】 检验方法为20时,样本量必须在3-30之间 【解决方法】 控制样本量为3-30
Error in data.frame(…, check.names = FALSE) :参数值意味着不同的行数: 1, 0
【报错原因】 数据不是重复测量数据或者数据量太少 【解决方法】 更换正确的重复测量数据
Eror in fiter(X,Y,ofset = ofs,penalty,.matix = penalty.matrix,: NA/NaN/nfin foreign functiocall (arg 1).
【报错原因】 数据问题,数据量太少,概率一致,算不出来 【解决方法】 增加预测数据,或者repeat
Error in purrr:map(var subgroups, ~TableSubgroupGLM(formula, var subgroup =. Caused by error in`.svycheck(): !..2 used in an incorrect context, no .. to look in
错误原因:因变量,自变量,亚组变量中可能存在个别变量的值不符合模型要求,例如亚组变量不能多于三个分类解决方法:(1)按照参数要求检查变量(2)逐个变量排查
XGBoost:Invalid classes inferred from unique values of `y. Expected: [0 1], got [1 2]。
报错原因:目标变量的值应该为0,1解决方法:检查目标变量的值,确保目标变量的值为0,1
机器学习分类模型SE:Error in self$assert(xs, sanitize = TRUE) :Assertion on ‘xs’ failed: num.threads: May not be NA
报错原因:线程数输入不是数值解决方法:(1)检查线程数输入不要为空,或者字符串,只能是单个数字,不能带逗号
Error in readRDS(model URl port) : ‘file’◆◆◆◆◆◆◆
错误原因:模型端口没有连接,灰色端口都是模型端口,带有模型端口的节点都可能出现这类错误.鼠标悬停端口上能看到输入输出的数据类型解决方法:连接灰色端口
运算因错误中止,原因:Error in mediation::mediate(model_med, model_total, treat = var_treatment, :weights on outcome and mediator models not identical
【报错原因】 中介模型和全模型的'权重'变量必须保持一致(存在/不存在) 【解决方法】 增加权重值或者删掉权重值
Error in gbm.unify(model, data):Models built on data with categorical features are not supported – please encode them before training.
【报错原因】 类别数据需要encode 【解决方法】 前面链接 独热编码+标签转换编码+转换变量类型 进行encode
限制性立方样条:Error in quantile.default(WD[, var predictl, plotRcs::knot(num point pred)).(unordered)factors are not allowed
报错原因:分类型变量不能用于做RCS预测变量解决方法:选择连续型变量做RCS预测变量
Mimic数据库:connection to server at “127.0.0.1”, port 33334 failed: Connection refused (0x0000274D/10061)Is the server runnina on that host and accepting TCP/P connections?
报错原因: Mimic数据库服务可能未开启 解决方法: (1)如果是刚开启软件,并刚打开的项目,则点击mimic查询数据库的参数设置按钮,初始化数据库服务 (2)以上方法无效的情况下...
数据分箱:Bin edges must be unique: index([0.15, 0.19, 0.19, 0.22, 17.35], dtype=’float64′, name=’LBXlHG”)You can drop duplicate edaes by settina the ‘duplicates’ kwara
报错原因:待分箱德变量值中存在重复的边界值,导致无法分段,如上图所示,0.19为边界值,但存在重复解决方法:可以使用等频率分箱,先将变量排序,然后使用等频分箱
插补空值:Please convert object columns to categorical or some numeric type
报错原因:输入插补的变量的类型非法,提示将变量类型转为分类或者连续解决方法:用转换变量类型节点,将目标变量转为合适的类型
预测器SE:Error in model_rr$predict_newdata(newdata = newdata, task = tsk_wd) : attempt to apply non-function
报错原因: (1)通常为个别变量在模型训练前后的数据中,类型不一致 在模型训练前A变量为连续型,在模型训练后输出的表格中,其类型为分类 解决方法: (1)检查模型训练前后数据表的变量类型...
Error in paste(self$Code, self$ld, sep = ” “):cannot get ALTSTRING ELT during GC
报错原因:R语言自动清理内存失效解决方法:保存工程后重开软件
Error in coxph(formula = Surv(Survival_time, vital_status) ~ FOXD2.AS1 + :an id statement is required for multi-state models
【报错原因】 生存状态、生存时间不是连续型变量 【解决方法】 需要添加变量类型转换节点
Permission denied: ‘XXXXXXXX/run logic coef.tsv’.
错误原因: 看到“Permission denied”这个提示就是计算机的文件没有读写权限 自己用其他软件(Excel,记事本等)把分析结果的文件打开导致决策链无法访问。真是一种低级的错误,自己的计算机权...

![Error in names(x) <- value :'names' attribute [4] must be the same length as the vector [0]-决策链社区论坛](https://bbs.statsape.com/wp-content/uploads/2025/04/20250416114709771-105-300x53.jpg)





![Error in onestrat(x[index, , drop=FALSE], clusters[index], nPSU[index][1], : Stratum(122) has only one PSU at stage 1-决策链社区论坛](https://bbs.statsape.com/wp-content/uploads/2025/04/20250414173720868-微信图片_20250414172602-300x183.png)





![XGBoost:Invalid classes inferred from unique values of `y. Expected: [0 1], got [1 2]。-决策链社区论坛](https://bbs.statsape.com/wp-content/uploads/2025/06/20250607142348511-image-300x69.png)









![数据分箱:Bin edges must be unique: index([0.15, 0.19, 0.19, 0.22, 17.35], dtype='float64', name='LBXlHG](https://bbs.statsape.com/wp-content/uploads/2025/05/20250513211750897-image-300x76.png)






![Error in if (class(model)[1] !=](https://bbs.statsape.com/wp-content/uploads/2025/04/20250416121043426-114-300x53.jpg)





