extract_testvec: extract all test vectors from 'lm' object

Description Usage Arguments Value Examples

Description

extract all test vectors from lm object

Usage

1

Arguments

limo

lm object

Value

list of test vectors

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(42)
y <- rnorm(10)
x <- runif(10)
mod <- lm(y ~ x)

# get test vectors
vT <- extract_testvec(mod)
# calculate coefficient estimates
sapply(vT, function(vt) vt%*%y)
coef(mod)

davidruegamer/coinflibs documentation built on May 14, 2019, 10:33 a.m.