Skip to content
Snippets Groups Projects
Commit a49d9d3e authored by Dhanush Kumar Reddy Narayana Reddy's avatar Dhanush Kumar Reddy Narayana Reddy
Browse files

edit in description

parent 418351a4
No related branches found
No related tags found
No related merge requests found
Package: group5labbonus
Type: Package
Title: What the Package Does (Short Line)
Title: Ridge Regression Analysis in R
Version: 1.0
Date: 2024-11-03
Author: Who wrote it
Maintainer: Who to complain to <yourfault@somewhere.net>
Author: Manu Jain [aut], Dhanush Kumar Reddy Narayana Reddy [cre]
Maintainer: Dhanush Kumar Reddy Narayana Reddy to <dhana004@student.liu.se>
Description: More about what it does (maybe more than one line).
License: GPL-3 + file LICENSE
Imports:
methods
RoxygenNote: 7.3.2
Encoding: UTF-8
Suggests:
......
# Generated by roxygen2: do not edit by hand
export(ridgereg)
importFrom(methods,new)
......@@ -11,11 +11,20 @@
#' @field coefficients A matrix containing the estimated ridge regression coefficients.
#' @field fitted_values A matrix of the fitted (predicted) values.
#' @field residuals A matrix of the residuals (difference between actual and fitted values).
#'
#' @method initialize Initializes
#' @param formula A formula specifying the model.
#' @param data A data frame containing the variables in the formula.
#' @param lambda The ridge penalty parameter.
#'
#' @method print Prints
#'
#' @method predict Predicts
#' @param newdata A data frame for which to predict new values.
#' @return A vector of predicted values.
#'
#' @method coef Extracts
#' @return A named vector of the regression coefficients.
#' @importFrom methods new
#' @export ridgereg
ridgereg <- setRefClass(
"ridgereg",
......
\name{fun}
\alias{fun}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
A Capitalized Title (ideally limited to 65 characters)
}
\description{
%% ~~ A concise (1-5 lines) description of what the function does. ~~
}
\usage{
fun()
}
%- maybe also 'usage' for other objects documented here.
\details{
%% ~~ If necessary, more details than the description above ~~
}
\value{
%% ~Describe the value returned
%% If it is a LIST, use
%% \item{comp1 }{Description of 'comp1'}
%% \item{comp2 }{Description of 'comp2'}
%% ...
}
\references{
%% ~put references to the literature/web site here ~
}
\author{
%% ~~who you are~~
}
\note{
%% ~~further notes~~
}
%% ~Make other sections like Warning with \section{Warning }{....} ~
\seealso{
%% ~~objects to See Also as \code{\link{help}}, ~~~
}
\examples{
##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or standard data sets, see data().
## The function is currently defined as
function ()
print()
}
% Add one or more standard keywords, see file 'KEYWORDS' in the
% R documentation directory (show via RShowDoc("KEYWORDS")):
% \keyword{ ~kwd1 }
% \keyword{ ~kwd2 }
% Use only one keyword per line.
% For non-standard keywords, use \concept instead of \keyword:
% \concept{ ~cpt1 }
% \concept{ ~cpt2 }
% Use only one concept per line.
......@@ -11,6 +11,13 @@
\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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment