Learn R Programming

simts (version 0.2.2)

lm_arma: MLR in Armadillo

Description

Perform Multiple Linear Regression using armadillo in C++

Usage

lm_arma(y, X)

Value

A field<vec> with:

coef

Coefficients

resid

Residuals

sigma2

Sigma^2

Arguments

y

A vec of length \(N\times 1\) containing the responses.

X

A mat with dimensions \(N \times p\), which is the design matrix.