rocJM(object, dt, data, idVar = "id", cc = NULL, min.cc = NULL,
max.cc = NULL, diffType = c("absolute", "relative"),
abs.diff = 0, rel.diff = 1, M = 300, burn.in = 100, scale = 1.6)
jointModel
.idVar
), the time points on
which longitudinal measuremendata
that identifies the different generic subjects to be considered.NULL
, this is computed using
a regular sequence based on percentiles of the observed marker values.cc
above.cc
above.rocJM
is a list with components,data
. Each component of this
list is again a list with four components the estimated Sensitivity Sens
and its standard
error seSens
, and the estimated Specificity Spec
and its standard error seSpec
.
All these four components are matrices with rows corresponding to the different dt
values and
columns corresponding to the different cc
values.dt
.dt
. These are defined as the values that maximize the product of sensitivity and specificity (a
simple but not always optimal rule!).data
with components numeric vectors
of the time points at which longitudinal measurements are supposed to be taken.dt
argument.M
argument.diffType
argument.abs.diff
argument.rel.diff
argument.cc
argument.min.cc
argument.max.cc
argument.dt
). The cut values for the marker $c$ are specified by the cc
, min.cc
and max.cc
arguments. Two types of
composite prediction rules can be defined depending on the value of the diffType
argument. Absolute prediction rules in which, between
successive measurements there is an absolute difference of between the cut values, and relative prediction rules in which there is a
relative difference between successive measurements of the marker. The lag values for these differences are defined by the abs.diff
and rel.diff
arguments. Some illustrative examples:
[object Object],[object Object],[object Object],[object Object]
The estimation of the above defined probabilities is achieved with a Monte Carlo scheme similar to the one described in
survfitJM
. The number of Monte Carlo samples is defined by the M
argument, and the burn-in iterations for
the Metropolis-Hastings algorithm using the burn.in
argument.
More details can be found in Rizopoulos (2010a).plot.rocJM
,
survfitJM
,
dynC
,
jointModel
fitLME <- lme(sqrt(CD4) ~ obstime * (drug + AZT + prevOI + gender),
random = ~ obstime | patient, data = aids)
fitSURV <- coxph(Surv(Time, death) ~ drug + AZT + prevOI + gender,
data = aids.id, x = TRUE)
fit.aids <- jointModel(fitLME, fitSURV, timeVar = "obstime",
method = "piecewise-PH-GH")
# the following will take some time to execute...
ND <- aids[aids$patient == "7", ]
roc <- rocJM(fit.aids, dt = c(2, 4, 8), ND, idVar = "patient")
roc
Run the code above in your browser using DataLab