Functions for computing and visualizing non-parametric cumulative incidence estimates, as well as dependence measures (odds ratio, relative risk) for bivariate competing risks data.
rr_cif(
cif,
data,
cause = NULL,
cif2 = NULL,
times = NULL,
cause1 = 1,
cause2 = 1,
cens.code = NULL,
cens.model = "KM",
Nit = 40,
detail = 0,
clusters = NULL,
theta = NULL,
theta.des = NULL,
step = 1,
sym = 0,
weights = NULL,
same.cens = FALSE,
censoring.weights = NULL,
silent = 1,
par.func = NULL,
dpar.func = NULL,
dimpar = NULL,
score.method = "nlminb",
entry = NULL,
estimator = 1,
trunkp = 1,
admin.cens = NULL,
...
)or_cif(
cif,
data,
cause = NULL,
cif2 = NULL,
times = NULL,
cause1 = 1,
cause2 = 1,
cens.code = NULL,
cens.model = "KM",
Nit = 40,
detail = 0,
clusters = NULL,
theta = NULL,
theta.des = NULL,
step = 1,
sym = 0,
weights = NULL,
same.cens = FALSE,
censoring.weights = NULL,
silent = 1,
par.func = NULL,
dpar.func = NULL,
dimpar = NULL,
score.method = "nlminb",
entry = NULL,
estimator = 1,
trunkp = 1,
admin.cens = NULL,
...
)
random.cif(cif, ...)
Grandom.cif(cif, ...)
predictPairPlack(cif1, cif2, status1, status2, theta)
npc(T, cause, same.cens = TRUE, sep = FALSE)
nonparcuminc(t, status, cens = 0)
plotcr(
x,
col,
lty,
legend = TRUE,
which = 1:2,
cause = 1:2,
ask = prod(par("mfcol")) < length(which) && dev.interactive(),
...
)
For npc: matrix with columns (time, cumulative incidence).
For nonparcuminc: matrix with time and cause-specific cumulative incidences.
a cumulative incidence model object (from timereg).
a data.frame with the variables.
causes to plot.
optional second CIF model if different from first.
time points for evaluation.
cause for first coordinate.
cause for second coordinate.
censoring code value.
censoring model type (default "KM").
maximum number of iterations.
level of output detail.
cluster variable name or vector.
dependence parameter(s).
design matrix for theta.
step size for optimization.
if 1, symmetric dependence structure.
optional weights.
logical; if TRUE, uses joint censoring weights.
optional pre-computed censoring weights.
verbosity level.
optional parameter function.
optional derivative of parameter function.
dimension of parameter vector.
optimization method (default "nlminb").
optional entry time variable.
estimator type.
truncation probability.
administrative censoring time.
additional arguments.
CIF values for subject 1 (for predictPairPlack).
status for subject 1.
status for subject 2.
matrix with columns: time1, time2, status1, status2 (for npc).
logical; if TRUE, uses separate censoring models for each subject.
vector of event/censoring times (for nonparcuminc).
vector of status codes (for nonparcuminc).
censoring code (default 0).
data matrix or competing risks object.
colors for curves.
line types for curves.
logical; if TRUE, add legend.
which plots to show.
logical; if TRUE, prompt before new page.
Klaus K. Holst, Thomas Scheike
npc computes bivariate non-parametric cumulative incidence using
inverse-probability-of-censoring weights.
nonparcuminc computes univariate non-parametric cumulative incidence
for multiple causes.
plotcr plots cumulative incidence curves for competing risks using
the prodlim package.
or_cif fits an odds-ratio model for bivariate cumulative incidence.
rr_cif fits a relative-risk model for bivariate cumulative incidence.
random.cif and Grandom.cif are aliases for random_cif
and Grandom_cif (random effects CIF models).
predictPairPlack predicts pairwise joint probabilities under a
Plackett (odds-ratio) dependence model.
matplot.mets.twostage produces matrix-plots of concordance over time
from a twostage object.