我试图使用sdc
包创建一个sdcMicro
对象,但出现此错误。
sdc_hh <- createSdcObj(dat=hh, keyVars=keyvar_hh, hhId = c("Id"))
Error in names(x) <- value :
'names' attribute [2] must be the same length as the vector [1]
In addition: Warning messages:
1: In measure_riskWORK(manipData, keyVars, w = w, hid = hhId, alpha = alpha, :
NAs introduced by coercion
2: In max(table(dataX[, 1]), na.rm = TRUE) :
no non-missing arguments to max; returning -Inf
有人知道可能是什么问题吗?