extract_tvalues: Extract t-values from lm object

Description Usage Arguments Value Examples

View source: R/regression.R

Description

Function extracts the t-values from an lm object as given by the summary function.

Usage

1
2
3
4
5
6
7
extract_tvalues(model, hide = NULL, se = "nid")

## S3 method for class 'lm'
extract_tvalues(model, hide = NULL, se = "nid")

## S3 method for class 'rq'
extract_tvalues(model, hide = NULL, se = "nid")

Arguments

model

Object of type lm.

hide

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

se

Computation scheme for standard errors in case of a quantile regression.

Value

Vector of type numeric.

Examples

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

m <- lm(y ~ x1 + x2)
extract_tvalues(m)

qr <- rq(y ~ x1 + x2)
extract_tvalues(m)
extract_tvalues(m, se = "ker")

## End(Not run)

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