summary_lm: summary_lm

View source: R/summary_lm.R

summary_lmR Documentation

summary_lm

Description

summary method for class ".lm.fit".. It's 200 times faster than traditional lm.

Usage

summary_lm(obj, ...)

Arguments

obj

Object returned by .lm.fit.

...

ignored

Value

a p x 4 matrix with columns for the estimated coefficient, its standard error, t-statistic and corresponding (two-sided) p-value. Aliased coefficients are omitted.

Examples

set.seed(129)
n <- 100
p <- 2
X <- matrix(rnorm(n * p), n, p) # no intercept!
y <- rnorm(n)

obj <- .lm.fit (x = cbind(1, X), y = y) 
info <- summary_lm(obj)

rtrend documentation built on Nov. 10, 2022, 6:14 p.m.