texreg_tvalues: texreg output with t-values

Description Usage Arguments Value Examples

View source: R/regression.R

Description

Function is a customized interface to the texreg function. It replaces standard errors in the output by t-values.

Usage

1
texreg_tvalues(model, hide = NULL, ...)

Arguments

model

Object of type lm or a list of lm and rq (quantile regression) objects.

hide

A string. All variables starting with that name are excluded. If NULL (default), no variables are omitted.

...

Additional parameters that are passed to default texreg function.

Value

Object of type texregTable.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
x1 <- 1:100
x2 <- rep(c(1, 2), 50)
y <- x1 + x2 + rnorm(100)

m <- lm(y ~ x1 + x2)
texreg_tvalues(m, digits = 4)

m2 <- lm(y ~ x1)
texreg_tvalues(list(m, m2))

library(quantreg)
data(stackloss)

qr25 <- rq(stack.loss ~ stack.x, 0.25)
qr50 <- rq(stack.loss ~ stack.x, 0.50)
qr75 <- rq(stack.loss ~ stack.x, 0.75)
texreg_tvalues(list(qr25, qr50, qr75))

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