```r predict.pamm <- function( object, newdata, type = c("response", "mrl", "hazard", "cumulative hazard", "survival probability"), se.type = c("direct", "sim", "delta"), ...) {} ``` - should it have a times argument by default? - return value: - expected survival time and mrl: vector of length `nrow(newdata)` - hazard, cumulative hazard and survival probability: ??? - alternatively, only allow `response` and `mrl` since other response types are covered in `add_*` functions - what if user wants the `mgcv` predictions, i.e. `predict.gam` instead of `predict.pamm`? - [ ] return types (`type = ...`): - [ ] hazard ("hazard") - [ ] cumulative hazard ("cumu_hazard") - [ ] survival probability ("surv_prob") - [ ] expected survival time (see also #136) ("response") - [ ] mean residual lifetime ("mrl")
should it have a times argument by default?
return value:
nrow(newdata)alternatively, only allow
responseandmrlsince other response types are covered inadd_*functionswhat if user wants the
mgcvpredictions, i.e.predict.gaminstead ofpredict.pamm?return types (
type = ...):