ridge_reg {ridgregextra} | R Documentation |
Ridge regression results with a manually selected k value
Description
Ridge regression with a manually selected k value
Usage
ridge_reg(x, y, k)
Arguments
x |
Explanatory variables (Dataframe, matrix) |
y |
Dependent variables (Dataframe, vector) |
k |
Ridge parameter |
Value
A list of lists
Examples
library("mctest")
x <- Hald[,-1]
y <- Hald[,1]
k <- 0.1
ridge_reg(x,y,k)
library(isdals)
data(bodyfat)
x <- bodyfat[,-1]
y <- bodyfat[,1]
k <- 0.1
ridge_reg(x,y,k)
[Package ridgregextra version 0.1.1 Index]