survIDINRI_helper {jsmodule}R Documentation

survIDINRI_helper: Helper function for IDI.INF.OUT in survIDINRI packages

Description

Helper function for IDI.INF.OUT in survIDINRI packages

Usage

survIDINRI_helper(
  var.event,
  var.time,
  list.vars.ind,
  t,
  data,
  dec.auc = 3,
  dec.p = 3,
  id.cluster = NULL
)

Arguments

var.event

event

var.time

time

list.vars.ind

list of independent variable

t

time

data

data

dec.auc

digits for AUC, Default: 3

dec.p

digits for p value, Default: 3

id.cluster

cluster variable if marginal model, Default: NULL

Details

Helper function for IDI.INF.OUT in survIDINRI packages

Value

IDI, NRI

See Also

data.table model.matrix coxph Surv IDI.INF.OUT IDI.INF

Examples

# library(survival)
# survIDINRI_helper("status", "time", list.vars.ind = list("age", c("age", "sex")),
#                  t = 365, data = lung)

[Package jsmodule version 1.5.6 Index]