estimate_concordance: Estimate Out-of-Sample Concordance

Description Usage Arguments Value

View source: R/cforward.R

Description

Estimate Out-of-Sample Concordance

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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


cforward documentation built on March 29, 2021, 5:07 p.m.