Learn R Programming

RRI (version 1.1)

OLS_c: Fast least squares

Description

Fast OLS as in fastLm but returns only the fitted coefficients.

Usage

OLS_c(y, X)

Arguments

y

Vector of outcomes.

X

Matrix of covariates (first column should be 1's)

Value

Vector of coefficients.