Learn R Programming

eha (version 2.11.5)

ltx2: 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,
  ...
)

Value

LaTeX code version of the results from a run with coxreg, phreg, phreg, aftreg.

Arguments

x

The output from a call to coxreg, tpchreg, or aftreg

caption

A suitable caption for the table.

label

A label used in the LaTeX code.

dr

Output from a drop1 call.

digits

Number of digits to be printed.

conf

Confidence intervals level.

keep

Number of covariates to present.

...

Not used.

Author

Göran Broström.

See Also

xtable, coxreg, phreg, phreg, aftreg, and ltx.

Examples

Run this code

data(oldmort)
fit <- coxreg(Surv(enter, exit, event) ~ sex, data = oldmort)
ltx2(fit, caption = "A test example.", label = "tab:test1") 

Run the code above in your browser using DataLab