ltx2: LaTeX alternative printing of regression results.

View source: R/ltx2.R

ltx2R 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 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.

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") 


goranbrostrom/eha documentation built on June 19, 2024, 1:39 a.m.