Doesn't seem to work with randomForestSRC
Opened this issue · 0 comments
pbreheny commented
fit <- rfsrc(Surv(time, status) ~ ., data = data)
visreg(fit, 'upcr')
results in
Error in class(x) <- unique.default(c("AsIs", oldClass(x))) :
attempt to set an attribute on NULL
5: trans(p$fit)
4: Response(fit, x, trans, alpha, ...)
3: getXY(fit, f, name, nn, cond.j, type, trans, alpha, jitter, ...)
2: setupV(fit, Data, xvar, nn, cond, type, trans, xtrans, alpha,
jitter, by, yName, ...)
1: visreg(fit, "upcr", gg = TRUE)