build_cox_model: Build a cox model

Description Usage Arguments Value Author(s) Examples

View source: R/Blanket_statsments.R

Description

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

Usage

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

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

BlanketStatsments documentation built on Aug. 2, 2021, 9:06 a.m.