Fits a weighted Royston-Parmar flexible parametric survival model using
flexsurv::flexsurvspline().
Usage
surv.flexsurvspline(
time,
event,
X,
newdata = NULL,
new.times,
obsWeights = NULL,
id = NULL,
k = 1L,
scale = "hazard",
...
)Arguments
- time
Observed follow-up time.
- event
Observed event indicator.
- X
Training covariate data frame.
- newdata
Covariate data frame used for prediction.
- new.times
Times at which survival probabilities are requested.
- obsWeights
Optional non-negative observation weights.
- id
Currently ignored.
- k
Number of internal spline knots.
- scale
Scale on which the flexible model is defined.
- ...
Additional arguments passed to
flexsurv::flexsurvspline().
