regress_step: regress_step

Description Usage Arguments Value

View source: R/step_regression.R

Description

successively regresses each variable x our of the rest of the x matrix and y, then calls itself again. Returns a vector of residuals for each variable.

Usage

1

Arguments

x

a design matrix. Function called recursively with fewer columns of x until finished

y

a response vector

Value

a matrix of residuals, each column corresponds to a column of x


cmpear/StepRegression documentation built on May 20, 2020, 2:44 a.m.