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

abhijith-asok/Linreg documentation built on Nov. 18, 2017, 9:50 a.m.