50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


AllelicSeries (version 0.1.1.5)

OLS: Ordinary Least Squares

Description

Fits the standard OLS model.

Usage

OLS(y, X)

Value

List containing the following:

  • beta: Regression coefficients.

  • v: Residual variance.

  • se: Standard errors.

  • z: Z-scores.

  • pval: P-values based on the chi2 distribution.

Arguments

y

(n x 1) Numeric vector.

X

(n x p) Numeric matrix.