coef_table: Print coefficient estimates table

Description Usage Arguments Value Examples

View source: R/coef_table.R

Description

Display the output of models estimated with lm() or similar functions. The parameter vce allows to use covariance matrices consistent to heteroskedasticity and autocorrelation (see the documentation of se()).

Usage

1
coef_table(model, vce = NULL)

Arguments

model

an estimated model returned by lm or similar functions.

vce

an object indicating how to obtain the covariance matrix.

Value

Invisibly returns the coefficient table

Examples

1
2
3
4
5
6
7
data("hprice1")

mod <- lm(price ~ sqrft + bdrms, data = hprice1)
coef_table(mod)

# Heteroskedasticity consistent standard errors
coef_table(mod, vce = "HC")

jcpernias/ec1027 documentation built on Dec. 20, 2021, 10:03 p.m.