build_cox_model {BlanketStatsments}R Documentation

Build a cox model

Description

Build a Cox proportional hazards model from data and meta-parameters

Usage

build_cox_model(
  df,
  event_time,
  event_censor,
  predictors,
  covariates = c(),
  verbose = FALSE
)

Arguments

df

data.frame containing the data set

event_time

character denoting column with event time

event_censor

character denoting column specifying events/censoring

predictors

character vector denoting columns with independent variables of interest

covariates

character vector denoting columns with independent variables not of interest. Covariates are mathematically identical to predictors but will be ignored in reporting

verbose

logical. TRUE activates printout messages

Value

A Cox proportional hazards model

Author(s)

J. Peter Marquardt

Examples

data <- survival::lung
mod <- build_cox_model(data, 'time', 'status', c('age', 'sex'))


[Package BlanketStatsments version 0.1.2 Index]