| ltx2 {eha} | R Documentation |
LaTeX alternative printing of regression results.
Description
This (generic) function prints the LaTeX code of the results of a fit from
coxreg, phreg, tpchreg,
or aftreg.
Usage
ltx2(
x,
caption = NULL,
label = NULL,
dr = NULL,
digits = max(options()$digits - 4, 4),
conf = 0.95,
keep = NULL,
...
)
Arguments
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. |
Value
LaTeX code version of the results from a run with
coxreg, phreg, phreg,
aftreg.
Note
Resulting tables contain estimated hazard ratios and confidence limits
instead of regression coefficients and standard errors as in ltx.
Author(s)
Göran Broström.
See Also
xtable, coxreg, phreg,
phreg, aftreg, and ltx.
Examples
data(oldmort)
fit <- coxreg(Surv(enter, exit, event) ~ sex, data = oldmort)
ltx2(fit, caption = "A test example.", label = "tab:test1")
[Package eha version 2.11.4 Index]