代码:mod1 <- crr(ftime,fstatus,x,failcode = 1)
summary(mod1)
提示错误:
Error in crr(ftime, fstatus, x, failcode = 1) :
NA/NaN/Inf in foreign function call (arg 4)
In addition: Warning message:
In crr(ftime, fstatus, x, failcode = 1) : NAs introduced by coercion
竞争风险模型,代码如上,R语言提示错误,但我的数据没有缺失值,这是因为什么呢?
额一样的问题。。。
看看你的x是不是矩阵,函数要求是矩阵
请问找到解决办法了吗?
请问解决了吗,我也遇到同样的问题