It shows the regression result in the HR [95% CI] p-value format, which is usually the form used in medical research papers.

1 2 |

`model` |
Regression model result objects that have the summary and confint methods. |

`exp` |
TRUE by default. You need to specify exp = FALSE if your model is has the indentity link function (linear regression, etc). |

`digits` |
Number of digits to print for the main part. |

`pDigits` |
Number of digits to print for the p-values. |

`printToggle` |
Whether to print the output. If FLASE, no output is created, and a matrix is invisibly returned. |

`quote` |
Whether to show everything in quotes. The default is FALSE. If TRUE, everything including the row and column names are quoted so that you can copy it to Excel easily. |

`ciFun` |
Function used for calculation. |

A matrix containing what you see is returned invisibly. You can capture it by assignment to an object.

Kazuki Yoshida

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ```
## Load
library(tableone)
## Load Mayo Clinic Primary Biliary Cirrhosis Data
library(survival)
data(pbc)
## Check variables
head(pbc)
## Fit a Cox regression model
objCoxph <- coxph(formula = Surv(time, status == 2) ~ trt + age + albumin + ascites,
data = pbc)
## Show the simple table
ShowRegTable(objCoxph)
## Show with quote to ease copy and paste
ShowRegTable(objCoxph, quote = TRUE)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.