MyNixOS website logo
Description

Ridge Regression Parameter Estimation.

It is a package that provides alternative approach for finding optimum parameters of ridge regression. This package focuses on finding the ridge parameter value k which makes the variance inflation factors closest to 1, while keeping them above 1 as addressed by Michael Kutner, Christopher Nachtsheim, John Neter, William Li (2004, ISBN:978-0073108742). Moreover, the package offers end-to-end functionality to find optimum k value and presents the detailed ridge regression results. Finally it shows three sets of graphs consisting k versus variance inflation factors, regression coefficients and standard errors of them.

CRAN_Status_Badge

ridgregextra: An R package for ridge regression parameter estimation

ridgregextra focuses on finding the ridge parameter value k which makes the VIF values closest to 1 while keeping them above 1 as stressed "Applied Linear Statistical Models" (Kutner et al., 2004). The package includes the ridgereg_k function, presents a system that automatically determines the k value in a certain range defined by the user and provides detailed ridge regression results. ridgereg_k also provides ridge regression tables (VIF, MSE, R2, Beta, Stdbeta) using vif_k function for k ridge parameter values generated between certain lower and upper bound values.

In addition, the ridge_reg function provides users the ridge regression results for a manually entered k value. Finally ridgregextra provides three sets of graphs consisting k versus VIF values, regression coefficents and standard errors of them.

ridgregextra was presented for the first time in "Why R? Turkey 2022" conference.

Installing ridgregextra from CRAN

install.packages("ridgregextra")

Installing ridgregextra development version

Please make sure that you installed devtools package.

If you would like to install dev version of the package, please use following command.

devtools::install_github(filizkrdg/ridgregextra)

Example usage of the package.

You can use isdals package to have example data to test ridgregextra package. isdals package is being installed, while you are installing ridgregextra package, so you don't have to install the package again.

  • Prepare the dataset
library(isdals)
data(bodyfat)
x=bodyfat[,-1]
y=bodyfat[,1]
  • Run ridgereg_k function to get coefficients by using alternative approach to traditional ridge regression techniques.
ridgereg_k(x,y,0,1)

You can use mctest package to have example data to test ridgregextra package. mctest package is being installed, while you are installing ridgregextra package, so you don't have to install the package again.

  • Prepare the dataset
library("mctest")
x=Hald[,-1]
y=Hald[,1]
  • Run ridgereg_k function to get coefficients by using alternative approach to traditional ridge regression techniques.
ridgereg_k(x,y,0,1)

References

  • Kutner, M.H., Nachtsheim, C.J., Neter, J., Li, W., Applied Linear Statistical Models, pp.430-440, 2004.
  • Karadağ, F. and Sazak, H.S., “R Algorithm for Ridge Parameter Estimation in Ridge Regression” Why R? Turkey 2022 Conference, online, Verbal, Summary Text, p.13, 2022. (https://www.nobelyayin.com/why-r-turkiye-2022-konferansi-18447.html)

Contact

For any questions please contact:

Metadata

Version

0.1.1

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows