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 FALSE, 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. confint is the default. For generalized linear models this gives the profile likelihood-based calculation, which may take too much time for large models, use confint.default for simple normal approximation method (+/- 1.96 * standard error).
Returns
A matrix containing what you see is returned invisibly. You can capture it by assignment to an object.
Examples
## Loadlibrary(tableone)## Load Mayo Clinic Primary Biliary Cirrhosis Datalibrary(survival)data(pbc)## Check variableshead(pbc)## Fit a Cox regression modelobjCoxph <- coxph(formula = Surv(time, status ==2)~ trt + age + albumin + ascites, data = pbc)## Show the simple tableShowRegTable(objCoxph)## Show with quote to ease copy and pasteShowRegTable(objCoxph, quote =TRUE)