JS.aicC: General survival statistics for multivariable analysis (AIC &...

Description Usage Arguments Value Examples

View source: R/JSaicC.R

Description

JS.aicC output the table with general multivariable survival analysis result with HR (95% Confidence Interval),P value and Akaike's An Information Criterion. This function only change the format of the output table.

Usage

1

Arguments

...

arguments will be passed to coxph

Value

A dataframe of coxph output including Variable Names, HRs (95% Confidence Intervals), P values, AIC and C index

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Model <- JS.aicC (Surv(as.numeric(surdate), scensor) ~ as.factor(isup_m_new) + age + gentder + stage , data = D1)

rtf output
rtf<-RTF("Table_survival.doc",width = 8.5, height = 11, font.size = 10, omi = c(1,1,1,1))
addHeader(rtf,title="Table1, Survival Analysis ")
addTable(rtf, Model, font.size = 10, row.names = F, NA.string="-", col.widths = c(rep(1.5, 6) ) )
done(rtf)

Rmarkdown output
save(Model, file='myfile.Rda')

Then open at markdown file
output <- load("H:/Projects/myfile.Rda")
kable(output, format = "markdown")

SophiaJia/Jsurvformat1.2 documentation built on May 10, 2017, 2:33 p.m.