- fit
Fitted model to do predictions from. Possible classes are gfcm, stpm2,
pstpm2, and cm.
- type
Prediction type (see details). The default is surv.
- newdata
Data frame from which to compute predictions. If empty, predictions are made on the the data which
the model was fitted on.
- time
Optional time points at which to compute predictions. If empty, a grid of 100 time points between 0
and the maximum follow-up time is selected.
- var.type
Character. Possible values are "ci" (default) for confidence intervals,
"se" for standard errors, and "n" for neither.
- exp.fun
Object of class list containing functions for the expected survival
of each row in newdata. If not specified, the function computes the expected
survival based on newdata using the survival::survexp function. If newdata is not provided,
the expected survival is based on the data which the model was fitted on.
- ratetable
Object of class ratetable used to compute the general population survival.
Default is survexp.dk.
- rmap
List to be passed to survexp from the survival package if exp.fun = NULL.
Detailed documentation on this argument can be found by ?survexp.
- scale
Numeric. Passed to the survival::survexp function and defaults to 365.24.
That is, the time scale is assumed to be in years.
- smooth.exp
Logical. If TRUE, the general population survival function is smoothed by the function
smooth.spline using the the argument all.knots = TRUE.
- link
Character, indicating the link function for the variance calculations.
Possible values are "log", "cloglog" for \(log(-log(x))\) , "mlog" for -log(x),
and "I" for the indentity.
- mean
Logical. If TRUE, the function outputs the average estimate across the
rows in newdata. If newdata = NULL, the argument is not used. The default is FALSE.