ridge_regression: ridge_regression

Description Usage Arguments Value

View source: R/ridge_regression.R

Description

Compute a linear regression with gradient descent method.

Usage

1
ridge_regression(form, dat, lambda = 0, contrasts = NULL)

Arguments

form

A formula with the format of "Y ~ .".

dat

A dataframe.

lambda

The ridge penalty term lambda set default as 0.

contrasts

A list of contrasts.

Value

A list of coefficients.


Z1chenZhao/bis557 documentation built on Dec. 21, 2020, 10:03 p.m.