linmodEst: Linear regression

Description Usage Arguments Value Examples

View source: R/linmodEst.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)

janek01/testPackage documentation built on May 28, 2019, 11:01 p.m.