boost-R / mboost

Boosting algorithms for fitting generalized linear, additive and interaction models to potentially high-dimensional data. The current relase version can be found on CRAN (http://cran.r-project.org/package=mboost).
73 stars 27 forks source link

Fix `survFit()` for single row in `newdata` #118

Open hfrick opened 2 years ago

hfrick commented 2 years ago

closes #117

library(mboost)
#> Loading required package: parallel
#> Loading required package: stabs
library(survival)

mod <- blackboost(Surv(time, status) ~ age + ph.ecog, 
                  data = lung, 
                  family = CoxPH())
sF_1 <- survFit(mod, lung[1,])

Created on 2022-05-11 by the reprex package (v2.0.1)

hbaniecki commented 1 year ago

I am looking forward to seeing this merged 👍🏻