Skip to content

S3 predict function for pamm objects #139

@adibender

Description

@adibender
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 = ...):

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions