我正在尝试使用crrp软件包在R中执行常规竞争风险分析,但出现以下错误:
> R.version.string
[1] "R version 3.6.0 (2019-04-26)"
> library(crrp)
> packageVersion("crrp")
[1] ‘1.0’
> mm <- model.matrix(~., na.omit(data[marker.names]))
> dim(mm)
[1] 212 13770
> length(event)
[1] 212
> event[19:23]
[1] censored death censored censored shock
Levels: censored shock death
> length(etime)
[1] 212
> fit <- crrp(etime, event, mm, penalty=c("LASSO"), failcode="shock", cencode="censored")
data length [674900] is not a sub-multiple or multiple of the number of rows [13770]Error in zwz + n * pp : non-conformable arrays
在我看来,我正在做的事情非常简单,并且尺寸匹配。