regression_table_cox: All-in-one publication ready regression table for cox models...

regression_table_coxR Documentation

All-in-one publication ready regression table for cox models This function output a publication-ready regression table from a dataset. Each column of the dataset is independantly tested as a x variable in a univariate model.

Description

All-in-one publication ready regression table for cox models This function output a publication-ready regression table from a dataset. Each column of the dataset is independantly tested as a x variable in a univariate model.

Usage

regression_table_cox(data, y_var, time_var)

Arguments

data

A dataframe with row corresponding to samples/patients and columns to variables.

y_var

A character string corresponding to the y variable = time-dependant outcome (0-1 or dead-alive for example).

time_var

A numeric variable corresponding to the time variable.


VincentAlcazer/StatAid documentation built on Aug. 27, 2024, 1:50 a.m.