-
Dhanush Kumar Reddy Narayana Reddy authoredDhanush Kumar Reddy Narayana Reddy authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
ridgereg-class.Rd 1.39 KiB
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ridgereg.R
\docType{class}
\name{ridgereg-class}
\alias{ridgereg-class}
\alias{ridgereg}
\title{Ridge Regression Reference Class}
\arguments{
\item{formula}{A formula specifying the model.}
\item{data}{A data frame containing the variables in the formula.}
\item{lambda}{The ridge penalty parameter.}
\item{newdata}{A data frame for which to predict new values.}
}
\value{
A vector of predicted values.
A named vector of the regression coefficients.
}
\description{
This class implements ridge regression with methods for initialization, coefficient extraction,
prediction, and printing the model summary.
}
\section{Fields}{
\describe{
\item{\code{formula_string}}{A character string representing the regression formula.}
\item{\code{data_string}}{A character string representing the data frame used.}
\item{\code{formula}}{A formula specifying the relationship between dependent and independent variables.}
\item{\code{data}}{A data frame containing the variables specified in the formula.}
\item{\code{lambda}}{A numeric value for the ridge penalty parameter.}
\item{\code{coefficients}}{A matrix containing the estimated ridge regression coefficients.}
\item{\code{fitted_values}}{A matrix of the fitted (predicted) values.}
\item{\code{residuals}}{A matrix of the residuals (difference between actual and fitted values).}
}}