ols: Ordinary Least Squares

View source: R/ols.R

olsR Documentation

Ordinary Least Squares

Description

Perform least squares of y on x. Returns a list with the coefficients, t statistics, p values and residual vector.

Usage

ols(y, x)

Arguments

y

vector dependent variable

x

a vector or matrix of regressors

Value

coefficients, fitted values, standard errors, t statistics, p values, residuals


Marga8/HDGCvar documentation built on May 25, 2024, 11:12 a.m.