Description Usage Arguments Value Examples
JS.uni_em output the table with general multivariable survival analysis result with Number of total patients, Number of Events, Estimated Median, HR (95% Confidence Interval),P value. This function only change the format of the output table.
1 | JS.uni_em(Data, Event, Stime, Svar, groupn, Cat = F)
|
Event |
The status indicator, normally 0=alive, 1=dead |
Stime |
This is the follow up time |
Svar |
A vector of group |
groupn |
A text vector of the the group name for output |
Cat |
logical, indicating whether or not Svar is a categorical varaible |
D |
A data.frame in which to interpret the variables |
A dataframe of coxph output including Number of total patients, Number of Events, HRs (95% Confidence Intervals), P values,
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | JS.uni_em(D = D ,"pd_censor", "pd_surv" , "tr_group", "Treatment" , Cat = T)
rtf output
rtf<-RTF("Table_survival.doc",width = 8.5, height = 11, font.size = 10, omi = c(1,1,1,1))
addHeader(rtf,title="Table , Survival Analysis ")
addTable(rtf,isup_m.surv, font.size = 10, row.names = F, NA.string="-", col.widths = c(rep(0.6, 3), 2, rep(0.6, 3) ) )
done(rtf))
Rmarkdown output
save(isup_m.surv, file='myfile.Rda')
Then open at markdown file
library(knitr)
load("H:/Projects/myfile.Rda")
"```{r, echo=FALSE,results = 'asis'}"
load("H:/Projects/p_Smith, Mitchell/Rituxan/Rituxan/T_BMI.Rdata")
knitr::kable(isup_m.surv, format = "markdown")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.