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 imputeTS::na_ma(v, k = k, weighting = “linear”) :At least 2 non-NA data points required in the time series to apply na_ma.
【报错原因】 ID id筛选之后数据没了 【解决方法】 更换数据或变量
Error in glmnet(x, y, family = “gaussian”, alpha = 1, nlambda = lambda_values) :x should be a matrix with 2 or more columns
【报错原因】 自变量只选择一个,需要2个以上 【解决方法】 选择二个以上的自变量
运算因错误中止,原因:Error in mediation::mediate(model_med, model_total, treat = var_treatment, :weights on outcome and mediator models not identical
【报错原因】 中介模型和全模型的'权重'变量必须保持一致(存在/不存在) 【解决方法】 增加权重值或者删掉权重值
Error in rms::Predict(model, origen_contin, fun = exp, ref.zero = TRUE, :predictors(s) not in model: origen_contin
【报错原因】 模型崩溃 【解决方法】 修改自变量和因变量组合
Error in rms::Predict(model, gene5, fun = exp, ref.zero = TRUE, conf.int = 0.95) : predictors(s) not in model: gene5
【报错原因】 (1)预测变量参数设置错误 (2)模型拟合失败 【解决方法】 (1)重新设置预测变量 (2)修改自变量和因变量组合,节点数等参数 (3)以上方法反复尝试无效后选择放弃