adibender / pammtools

Piece-wise exponential Additive Mixed Modeling tools
https://adibender.github.io/pammtools/
Other
47 stars 11 forks source link

S3 predict function for pamm objects #139

Open adibender opened 4 years ago

adibender commented 4 years ago
predict.pamm <- function(
  object, 
  newdata, 
  type = c("response", "mrl", "hazard", "cumulative hazard", "survival probability"), 
  se.type = c("direct", "sim", "delta"), 
  ...) {}
iMSQ commented 2 years ago

FYI, predictSurvProb() function (page 28, https://cran.r-project.org/web/packages/pammtools/pammtools.pdf) doesn't work with gam objects (pamm fitted model by mgcv::gam). Now it works with gaussian family implemented for glm only (https://rdrr.io/cran/pec/src/R/predictSurvProb.R).

adibender commented 2 years ago

thx @iMSQ. Could you open up a separate issue with a preprex regarding predictSurvProb