Learn R Programming

RRI (version 1.1)

fastLm: Fast least squares

Description

This functions fits the regression y ~ X using Armadillo solve function.

Usage

fastLm(y, X)

Arguments

y

Vector of outcomes.

X

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

Value

List of regression output with elements coef, stderr.