get_survprob: Calculate survival probabilities

Description Usage Arguments

Description

Calculate survival probabilities

Usage

1
2
get_survprob(newdata, object, ci = TRUE, time_variable = NULL,
  interval_length = quo(intlen), ...)

Arguments

newdata

A data frame or list containing the values of the model covariates at which predictions are required. If this is not provided then predictions corresponding to the original data are returned. If newdata is provided then it should contain all the variables needed for prediction: a warning is generated if not. See details for use with link{linear.functional.terms}.

object

a fitted gam object as produced by gam().

ci

Logical indicating whether to iclude confidence intervals. Defaults to TRUE

time_variable

Name of the variable used for the baseline hazard. If not given, defaults to "tend" for gam fits, else "interval". The latter is assumed to be a factor, the former numeric.

interval_length

quosure providing the name of the variable in newdata containing the interval lengths. Defaults to intlen.

...

Further arguments passed to predict.gam and get_hazard


adibender/pamm documentation built on May 14, 2019, 5:22 p.m.