linreg_yhat: Linear Regression (y hat)

Description Usage Arguments Value Author(s)

View source: R/linreg.R

Description

Calculates the y hat (\hat{y} = \mathbf{y} - \mathbf{e} = \mathbf{X} \boldsymbol{\hat{β}} = \mathbf{H} \mathbf{y} ).

Usage

1

Arguments

X

The data matrix, that is an n \times k matrix of n observations of k regressors, which includes a regressor whose value is 1 for each observation.

y

n \times 1 vector of observations on the regressand variable.

Value

Returns \hat{y}.

Author(s)

Ivan Jacob Agaloos Pesigan


jeksterslabds/jeksterslabRds documentation built on July 16, 2020, 3:41 p.m.