concatMods: render model outputs for comparison

Description

render a collection of related models

Usage

1
concatMods(x, mstub = "mod", type = c("se", "p")[1], dig = 3, clean=TRUE)

Arguments

x

list of model objects, currently lm, geese, alr, yags objects supported

mstub

column header token to prepend 1, 2, ... for column numbering

type

"se" means coefficients reported over (SE=...), "p" means coefficients reported over (p=...)

dig

number of digits for report rounding

clean

logical – if TRUE, removes apparently needless NA from output

Details

The bottom part of the table is generated by a model-class-specific getExtra method. See the vignette for details on how to modify this.

Value

a character matrix

Author(s)

Vince Carey <stvjc@channing.harvard.edu>

See Also

xtable

Examples

1
2
3
4
5
6
7
data(stackloss)
lm1 <- lm( stack.loss ~ Air.Flow, data=stackloss)
lm2 <- lm( stack.loss ~ Water.Temp, data=stackloss)
lm3 <- lm( stack.loss ~ Acid.Conc., data=stackloss)
lm4 <- lm( stack.loss ~ ., data=stackloss)
library(cremo)
print(concatMods(list(lm1, lm2, lm3, lm4)))

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.