estimate_concordance {cforward}R Documentation

Estimate Out-of-Sample Concordance

Description

Estimate Out-of-Sample Concordance

Usage

estimate_concordance(
  train,
  test = train,
  event_time = "event_time_years",
  event_status = "mortstat",
  weight_column = "WTMEC4YR_norm",
  all_variables = NULL,
  cfit_args = list(),
  ...
)

Arguments

train

A data set to perform model training.

test

A data set to estimate concordance, from fit model with train. Set to train if estimating on the same data

event_time

Character vector of length 1 with event times, passed to Surv

event_status

Character vector of length 1 with event status, passed to Surv

weight_column

Character vector of length 1 with weights for model. If no weights are available, set to NULL

all_variables

Character vector of variables to put in the model. All must be in data.

cfit_args

Arguments passed to concordancefit. If strata is to be passed, set strata_column in this list.

...

Additional arguments to pass to coxph

Value

A list of concordance and the model fit with the training data


[Package cforward version 0.1.0 Index]