常见问题 第2页
这里汇总了用户在使用统计猿网页版和桌面版软件时遇到的常见问题与处理方法。
Error in glmnet(x, y, family =

Error in glmnet(x, y, family = “binomial”, alpha = 1, nlambda = lambda_values) :x has missing values; consider using makeX() to impute them

【报错原因】 选择变量里含有空缺值 【解决方法】 建议将变量的空缺值进行插补
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
06114
生存分析ROC图:Error in roc.default(response, predictors[, 1], ...) : 'response' must have two levels-决策链社区论坛

生存分析ROC图:Error in roc.default(response, predictors[, 1], …) : ‘response’ must have two levels

报错原因: (1)输入的因变量不是0,1二分类的值 (2)在多因素生存分析中,如果以上的情况不存在,则可能是生存时间中位数以下的样本的生存状态不是0,1二分类变量 解决方法: 检查因变量是否...
空鱼O的头像-决策链社区论坛空鱼O32天前
05514
Error in UseMethod(

Error in UseMethod(“logLik”) :no applicable method for ‘logLik’ applied to an object of class “lrm”

【报错原因】 变量选择问题 【解决方法】 更换因变量或自变量
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
04514
Error in ssum[2, , 1] : subscript out of bounds      Error in axis(sides[jj], at = scaled[jj], labels = fat[jj], pos = y, cex.axis = cex.axis, :所有的位置值都是无限的-决策链社区论坛
Found array with 0 sample(s) (shape=(0, 2)) while a minimum of 2 is required by RandomSurvivalForest.请检查表格变量类型是否符需要转换,变量值是否需要插补空值,变量名是否存在非法字符!-决策链社区论坛
递归消除法:worker initialization failed: package or namespace load failed for 'caret'.object 'recvData' is not exported by'namespace:parallel'-决策链社区论坛

递归消除法:worker initialization failed: package or namespace load failed for ‘caret’.object ‘recvData’ is not exported by’namespace:parallel’

报错原因:R环境缺失一个包caret解决方法:参考这篇文章安装caret,https://bbs.statsape.com/q-and-a/578.html
空鱼O的头像-决策链社区论坛空鱼O20天前
08414
Dependent Variable should be in Two Categories-决策链社区论坛

Dependent Variable should be in Two Categories

【报错原因】 变量选择有问题,必须是0和1的二分类变量 【解决方法】 更换因变量
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
05214
error in glm.fit(x = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, : na/nan/inf in 'y'-决策链社区论坛

error in glm.fit(x = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, : na/nan/inf in ‘y’

【报错原因】 数据无法拟合 【解决方法】 检查因变量分布或者替换变量
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
06414
预测器SE:Error: Measure ’classif.acc‘ incompatible with task type 'sury‘-决策链社区论坛

预测器SE:Error: Measure ’classif.acc‘ incompatible with task type ‘sury‘

错误原因: 机器学习生存模型没有ACC的评估方法,只有分类模型才有 解决方法: 修改模型类型,以及评估方法  
空鱼O的头像-决策链社区论坛空鱼O1个月前
06414
Error in glmnet(x, y, family =

Error in glmnet(x, y, family = “binomial”, alpha = 1, nlambda = lambda_values) :x has missing values; consider using makeX() to impute them

【报错原因】 选择变量里含有空缺值 【解决方法】 建议将变量的空缺值进行插补
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
05614
Error in jags.model(model.file, data = data, inits = init.values, n.chains = n.chains, :Error in node rt[2]Node inconsistent with parents-决策链社区论坛
插补空值:Length mismatch: Expected axis has 74 elements, new values have 75 elements-决策链社区论坛

插补空值:Length mismatch: Expected axis has 74 elements, new values have 75 elements

报错原因: (1)数据表中存在全部样本都为空值的变量 (2)如果以上的情况没有,则所选的变量中,某些样本全部都为空值,导致该样本被丢弃 解决方法: (1)先使用选择变量节点剔除样本全部都...
空鱼O的头像-决策链社区论坛空鱼O18天前
06914
批量去除连锁不平衡:Error in file(file,

批量去除连锁不平衡:Error in file(file, “rt”): cannot open the connection

报错原因:plink分析SNP关联的结果无法写出到计算机,可能的原因有很多,以下为常见原因(1)plink的版本与计算机不兼容,在windows系统中分为32位和64位(2)plink的写出权限不足(与计算机有...
空鱼O的头像-决策链社区论坛空鱼O18天前
05714
Error in dosresmeta.fit(X[v != 0, , drop = FALSE], Z[v != 0, , drop = FALSE], :A two-stage approach requires that each study provides at least p non-referent obs (p is the number of columns of the design matrix X)-决策链社区论坛
Mimic:
异常类型:PostgresExceptidm
异常消息:42712: WITH 查询名

Mimic: 异常类型:PostgresExceptidm 异常消息:42712: WITH 查询名”carvedilol phosphate”被指定多次

报错原因:提取的药物信息中存在相同的英文名解决方法:对于相同的药物英文名,应该修改英文简称,注意前后缀不要出现空格等非法符号 
空鱼O的头像-决策链社区论坛空鱼O18天前
08214
Error in scale.default(X, X[v == 0, ], scale = FALSE) :'center'的长度必需和'x'列的数目相同-决策链社区论坛

Error in scale.default(X, X[v == 0, ], scale = FALSE) :’center’的长度必需和’x’列的数目相同

【报错原因】 数据不符合要求 【解决方法】 更换数据
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
06914
Error in cut.default(x, c(bins[1] - delta, bins)) : 'breaks' 的值有重复-决策链社区论坛

Error in cut.default(x, c(bins[1] – delta, bins)) : ‘breaks’ 的值有重复

【报错原因】 “预测时间点”、“区间样本数”数值不合适 【解决方法】 调整“预测时间点”、“区间样本数”
3 nodes produced errors;, first error: matrix multiplication: incompatible matrix dimensions:5595x2 and 4x1-决策链社区论坛

3 nodes produced errors;, first error: matrix multiplication: incompatible matrix dimensions:5595×2 and 4×1

【报错原因】 模型不拟合 【解决方法】 换变量,数据,模型数量
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
06614
孟德尔随机化本地数据:Error in h(simpleError(msg, call)):◆◆'seqinfo

孟德尔随机化本地数据:Error in h(simpleError(msg, call)):◆◆’seqinfo”◆◆◆◆◆◆h◆◆◆◆’x”◆◆◆◆@◆◆.:no ‘header’ line “#CHROM POS ID..”?

报错原因:输入的GWAS遗传变异位点数据表格式非法,ieu数据库中收录的GWAS数据集很多存在这个问题,而且经常更新解决方案:(1)ieu官网重新下载目标编号的GWAS数据集(2)更换别的GWAS数据集
空鱼O的头像-决策链社区论坛空鱼O1个月前
05414
多因素限制立方样条曲线:Error in `[.data.frame`(unique_cbind_dataframe, , xvar_data[i]) : 选择了未定义的列-决策链社区论坛

多因素限制立方样条曲线:Error in `[.data.frame`(unique_cbind_dataframe, , xvar_data[i]) : 选择了未定义的列

错误原因:数据端口输入顺序与自变量选择顺序不一致解决方法:(1)重新连接数据端口,保持连接顺序与自变量选择选择顺序一致,如下图,如果多因素限制立方样条曲线节点选择的自变量顺序为Var2...
Error in ranger::ranger(dependent.variable.name = task$target_names, data = task$data(),  :   User interrupt or internal error.-决策链社区论坛

Error in ranger::ranger(dependent.variable.name = task$target_names, data = task$data(), : User interrupt or internal error.

【报错原因】对于随机森林模型(无论是回归、分类还是生存分析),需要特别注意 mtry 参数的设置。mtry 参数表示每次分裂时,模型随机选择的特征变量的数量。在设置 mtry 值时,必须确保其不超...
Divine的头像-决策链社区论坛Divine1个月前
04514
机器学习SE的ROC曲线反向,如何修正?-决策链社区论坛

机器学习SE的ROC曲线反向,如何修正?

问题说明:这并非运行错误,而是ROC曲线反向,在二分类问题中通常正类为基准类,此图的情况则是将负类作为了基准类。解决方法:在训练任务创建前,定义好正类的标签 
空鱼O的头像-决策链社区论坛空鱼O22天前
09314
Meta偏差分析生成结果表但表中结果为空-决策链社区论坛

Meta偏差分析生成结果表但表中结果为空

【报错原因】 Meta二分类结局分析选择了分组变量或Meta连续型结局分析选择了分层变量
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
07314
更新变量名:'DataFrame' object has no attribute 'unique'-决策链社区论坛

更新变量名:’DataFrame’ object has no attribute ‘unique’

错误原因:存在重复的变量名解决方法:检查变量名,修改重复的变量名
空鱼O的头像-决策链社区论坛空鱼O1个月前
05013
Error in strsplit(var_independent_raw,

Error in strsplit(var_independent_raw, “,”) : non-character argument

【报错原因】 没选参数 【解决方法】 补全参数
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
03113
Error in quantile.default(WD[, var_independent[i]], probs = numeric_vector) :'na.rm'如果设为FALSE的话不允许有遺漏值和NaN-决策链社区论坛
Error: One or both dimensions exceed the maximum (50000px).- Use options(ragg.max_dim = ...) to change the max Warning: May cause the R session to crash。        Value cannot be null. (Parameter 's')。-决策链社区论坛
Error in onestrat(x[index, , drop = FALSE], clusters[index], nPSU[index][1], :Stratum (51) has only one PSU at stage 1-决策链社区论坛

Error in onestrat(x[index, , drop = FALSE], clusters[index], nPSU[index][1], :Stratum (51) has only one PSU at stage 1

【报错原因】 分层变量和自变量不适配,只有一个数据在某个分层里 【解决方法】 重新选择适合变量
里里里里卡42的头像-决策链社区论坛里里里里卡421个月前
05513
限制性立方样条:Error in which(sapply(var rsc, function(x)x== var predict))argument to 'which' is not logical-决策链社区论坛

限制性立方样条:Error in which(sapply(var rsc, function(x)x== var predict))argument to ‘which’ is not logical

报错原因预测变量没有设置解决方法补全预测变量相关参数
空鱼O的头像-决策链社区论坛空鱼O22天前
06713
Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,:sum' not meaningful for factors-决策链社区论坛

Error in Summary.factor(c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,:sum’ not meaningful for factors

【报错原因】 考虑有个别PSU分层数量太少 【解决方法】 使用强制分层运算的选项
里里里里卡42的头像-决策链社区论坛里里里里卡4228天前
05513