showreg: Show and compare regression results

Description Usage Arguments

View source: R/showreg.r

Description

The function extends and wraps either stargazer or the screenreg, texreg and htmlreg functions in the texreg package. It allows for robust standard errors (also clustered robust standard errors) and can show marginal effects in glm models.

Usage

1
2
3
4
5
6
showreg(l, custom.model.names = names(l), omit.stat = c("F", "ser"),
  robust = FALSE, robust.type = "HC3", cluster1 = NULL, cluster2 = NULL,
  vcov.li = NULL, coef.transform = NULL, coef.mat.li = NULL, digits = 2,
  output = c("text", "html", "latex")[1], output.fun = NULL,
  doctype = FALSE, title = NULL, intercept.bottom = FALSE,
  package = getOption("showreg.package")[1], ...)

Arguments

l

list of models as in screenreg

custom.model.names

custom titles for each model. By default the names of the model list.

robust

shall robust standard errors be used? Logical single number or a vector specifying for each model.

robust.type

the type of robust standard errors. Can be "HAC", "cluster", "HC1" to "HC4" or "NeweyWest". Can be a vector specifying a type for each model.

cluster1

and cluster2 if clustered robust standard errors are used, the name of the variables that shall be clustered by

coef.transform

either NULL or a vector containing "no" or "mfx", if an entry is "mfx" we show the marginal effects of the corresponding model.

coef.mat.li

for highest flexibility, you can also provide a list that contains for each model a matrix or data.frame as returned by coeftest with the columns: coefficent, se, t-value, p-value.

output

either "text", "html" or "latex"

output.fun

allows a manual output function, e.g. if one has overloaded the design of screenreg, texreg or htmlreg.

title

a string shown as title above the table

package

the underlying package for creating the tables, either "texreg" or "stargazer". The current default is texreg but that may change.

...

additional parameters for stargazer or screenreg, texreg or htmlreg

vcov.list

optional a list of covariance matrices of the coefficients for every model


skranz/regtools documentation built on May 30, 2019, 3:02 a.m.