ltx2 | R Documentation |
This (generic) function prints the LaTeX code of the results of a fit from
coxreg
, phreg
, tpchreg
,
or aftreg
.
ltx2(
x,
caption = NULL,
label = NULL,
dr = NULL,
digits = max(options()$digits - 4, 4),
conf = 0.95,
keep = NULL,
...
)
x |
The output from a call to |
caption |
A suitable caption for the table. |
label |
A label used in the LaTeX code. |
dr |
Output from a |
digits |
Number of digits to be printed. |
conf |
Confidence intervals level. |
keep |
Number of covariates to present. |
... |
Not used. |
LaTeX code version of the results from a run with
coxreg
, phreg
, phreg
,
aftreg
.
Resulting tables contain estimated hazard ratios and confidence limits
instead of regression coefficients and standard errors as in ltx
.
Göran Broström.
xtable
, coxreg
, phreg
,
phreg
, aftreg
, and ltx
.
data(oldmort)
fit <- coxreg(Surv(enter, exit, event) ~ sex, data = oldmort)
ltx2(fit, caption = "A test example.", label = "tab:test1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.