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 <- 7; p <- 2
X <- matrix(rnorm(n * p), n, p) # no intercept!
y <- rnorm(n)

obj_1 <- .lm.fit (x = cbind(1, X), y = y)
obj_2 <- lm(y~X)

kongdd/MissInfo documentation built on Jan. 14, 2024, 2:22 a.m.