linmodEst: Linear regression

Description Usage Arguments Value Examples

View source: R/linreg.R

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"]
linmodEst(y, X)

fcarnes/lintest documentation built on May 3, 2019, 8:03 p.m.