JS.uniLR_m: A complete table for multiple univariable survival analysis...

Description Usage Arguments Value Examples

View source: R/JSuniLR_m.R

Description

JS.uniLR_m output the table with general multivariable survival analysis result with Number of total patients, Number of Events, Estimited Survival,P value. This function only change the format of the output table.

Usage

1
JS.uniLR_m(Data, Event, Stime, Svars, groupns, month, Rho = 0, ci95 = FALSE)

Arguments

Event

The status indicator, normally 0=alive, 1=dead

Stime

This is the follow up time

Svars

A vector of variables

groupns

A text vector of the the group names for output

month

Time for estimiated survival in month

Rho

a scalar parameter that controls the type of test. With 'rho = 0' this is the log-rank or Mantel-Haenszel test, and with 'rho = 1' it is equivalent to the Peto & Peto modification of the Gehan-Wilcoxon test.

D

A data.frame in which to interpret the variables

Value

A dataframe of log rank test output including Number of total patients, Number of Events, Estimated Survival ,P values

Examples

1
2
3
4
5
Event   <- c("pd_censor")
Stime   <- c("pd_surv")
Svars   <- c("tr_group", "age_m")
Groupns <- c("Treatment", "Age")
JS.uniLR_m(D,  Event, Stime, Svars, Groupns, 60)

SophiaJia/Jsurvformat documentation built on Sept. 23, 2017, 1:59 p.m.