showCoeftest: Hides variables in coefficient test

Description Usage Arguments Examples

View source: R/regression.R

Description

Excludes variables – usually dummies variables – following a certain naming scheme. It also appends significance stars.

Usage

1
showCoeftest(model, vcov. = NULL, hide = NULL)

Arguments

model

Object of type lm.

vcov.

A specification of the covariance matrix as used by coeftest.

hide

A string. All variables starting with that name are excluded.

Examples

1
2
3
4
5
6
7
x1 <- 1:100
x2 <- rep(c(1, 2), 50)
y <- x1 + x2 + rnorm(100)

m <- lm(y ~ x1 + x2)

showCoeftest(m, hide = "x") # leaves only the intercept

sfeuerriegel/ResearchGroupTools documentation built on May 29, 2019, 8:01 p.m.