OLS: Ordinary Least Squares

View source: R/RcppExports.R

OLSR Documentation

Ordinary Least Squares

Description

Fits the standard OLS model.

Usage

OLS(y, X)

Arguments

y

(n x 1) Numeric vector.

X

(n x p) Numeric matrix.

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.


AllelicSeries documentation built on April 3, 2025, 7:46 p.m.