Learn R Programming

lpirfs (version 0.2.4)

get_resids_ols: Compute residuals from OLS model

Description

Estimate residuals from OLS model.

Usage

get_resids_ols(y_data, x_data)

Value

A numeric vector with residuals from OLS regression.

Arguments

y_data

A vector for the left hand variable.

x_data

A matrix with right hand variables.

Author

Philipp Adämmer