ridge_regression: Implements ridge regression with many predictors

View source: R/ridge_regression.R

ridge_regressionR Documentation

Implements ridge regression with many predictors

Description

This function computes coefficients for ridge regression All columns of the provided data frame are used as predictors, except the one specified as a response.

Usage

ridge_regression(dat, response, lambda)

Arguments

dat

A data frame

response

The name of a response variable in the data frame (unquoted)

lambda

A vector of penalty terms to try

Details

No interaction terms are included.

Value

A data frame of coefficients


mknauss58/Lab-6-Group documentation built on May 22, 2022, 12:26 a.m.