survival_univariate: Univariate Survival Regression

Description Usage Arguments Value

View source: R/survival_analysis.r

Description

Univariate Survival Regression

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
survival_univariate(
  data,
  time,
  time2 = NULL,
  event,
  names = NULL,
  strata = NULL,
  cluster = NULL,
  test = "LRT"
)

Arguments

data

A dataframe including all the variable needed, one variable for time to event and one variable for event indicator.

time

Name of the variable used for time to event or for start time if Start-Stop format

time2

Stop time if the data are in Start-Stop format

event

Name of the column used for event indicator.

names

Names of the variables to display. Lenght must be minus 2 the number of column of data, excluding time and event

strata

Name of the variable used for analysis with strata

cluster

Name of the variable used for analysis with cluster

test

Which test to use for p-value, possible values are "LRT" for Likelihood Ratio Test, "Wald" for Wald Test and "LogRank" for Log-Rank Test"

Value

Return a table with model parameters for every variable included in data.


CRUF documentation built on March 13, 2020, 1:34 a.m.