linmodEst: Linear regression

Description Usage Arguments Value Examples

Description

Runs an OLS regression not unlike lm

Usage

1
linmodEst(x, y)

Arguments

y

response vector (1 x n)

X

covariate matrix (p x n) with no intercept

Value

A list with 4 elements: coefficients, vcov, sigma, df

Examples

1
2
3
4
data(mtcars)
X <- as.matrix(mtcars[, c("cyl", "disp", "hp")])
y <- mtcars[, "mpg"]
linreg(y, X)

tix994/Linreg documentation built on May 29, 2019, 9:54 a.m.