
Prunes a landmark time from a LandmarkAnalysis
, removing the risk set, longitudinal submodel and survival submodel from the object.
Source: R/landmarking.R
prune-LandmarkAnalysis-method.Rd
Prunes a landmark time from a LandmarkAnalysis
, removing
the risk set, longitudinal submodel and survival submodel from the object.
Usage
# S4 method for class 'LandmarkAnalysis'
prune(x, landmark = NULL)
Arguments
- x
An object of class
LandmarkAnalysis
.- landmark
A numeric indicating the landmark time.
Value
An object of class LandmarkAnalysis
.