Description Usage Arguments Value Examples
JS.aicm 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.
1 |
... |
arguments will be passed to coxph |
A dataframe of coxph output including Variable Names, HRs (95% Confidence Intervals), P values and AIC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Model <- JS.aicm (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, 4) ) )
done(rtf)
Rmarkdown output
save(Model, file='myfile.Rda')
Then open at markdown file
output <- load("H:/Projects/myfile.Rda")
kable(output, format = "markdown")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.