
SurvivalQuantities Object & Constructor Function
SurvivalQuantities-class.RdConstructor function to generate a SurvivalQuantities object.
Usage
SurvivalQuantities(object, grid, type = c("surv", "haz", "loghaz", "cumhaz"))Arguments
- object
(
JointModelSamples)
samples as drawn from a Joint Model.- grid
(
Grid)
object that specifies which subjects and time points to calculate the quantities for. See Grid-Functions.- type
(
character)
quantity to be generated. Must be one ofsurv,haz,loghaz,cumhaz.
Slots
quantities(
Quantities)
The sampled quantities. Should contain 1 element per element ofgroupgroups(
list)
See argument section for detailstype(
character)
See See argument section for detailstime_grid(
numeric)
See argument section for detailsdata(
DataJoint)
The data that the Joint Model was fitted to to produce the samples/quantities
Group Specification
If groups is a character vector of subject IDs then the survival quantities will
only be calculated for those specific subjects.
If groups is a list then any elements with more than 1 subject ID will be grouped together
and their quantities will be calculated by taking a point-wise average.
For example: groups = list("g1" = c("sub1", "sub2"), "g2" = c("sub3", "sub4")) would result
in 2 groups being created whose values are the pointwise average
of c("sub1", "sub2") and c("sub3", "sub4") respectively.
If groups=NULL then all subjects from original dataset will be selected
See also
Other SurvivalQuantities:
as.data.frame.SurvivalQuantities(),
autoplot.SurvivalQuantities(),
brierScore.SurvivalQuantities(),
summary.SurvivalQuantities()