Here is another feature you can use. This is a modified version of xxtable defined for lm. ie I just changed the xtable.summary.lm function for the tobit case. It will also be tied to other functional functions.
xtable.summary.tobit <- function (x, caption = NULL, label = NULL, align = NULL, digits = NULL, display = NULL, ...) { x <- data.frame(unclass(x$coef), check.names = FALSE) class(x) <- c("xtable", "data.frame") caption(x) <- caption label(x) <- label align(x) <- switch(1 + is.null(align), align, c("r", "r", "r", "r", "r")) digits(x) <- switch(1 + is.null(digits), digits, c(0, 4, 4, 2, 4)) display(x) <- switch(1 + is.null(display), display, c("s", "f", "f", "f", "f")) return(x) } ## Now this should give you the desired result xtable(summary(tob))
I hope this helps to get the desired result.
source share