concatMods: render model outputs for comparison

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cremo.R

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

cremo documentation built on May 2, 2019, 5:23 p.m.

Related to concatMods in cremo...