OLS: OLS regression in matrix form

View source: R/Utilities.R

OLSR Documentation

OLS regression in matrix form

Description

Function computes OLS estimates of the regression y on x in matrix form, β = (X'X)^{-1} X'Y

Usage

OLS(y, x)

Arguments

y

matrix of dependent variables

x

matrix of independent variables

Value

b: OLS estimates of the regression


RoDivinity/BP2003 documentation built on Oct. 9, 2022, 9:33 a.m.