R/HDPenReg-package.R

#' @useDynLib HDPenReg, .registration = TRUE
#' @import rtkore
#' @import methods
#' @import Matrix
#' @importFrom graphics abline axis lines points matplot
#' @importFrom stats rbeta rbinom rpois
#'
#' @title Algorithms for lasso and fused-lasso problems.
#' @docType package
#' @aliases HDPenReg-package, HDPenReg
#' @name HDPenReg-package
#' @description This package contains algorithms for lasso and fused-lasso problems.
#' It contains an implementation of the lars algorithm [1],
#' for the lasso and fusion penalization and EM-based algorithms for (logistic) lasso and fused-lasso.
#'
#'
#' @examples
#'
#' # see vignette
#' # vignette("HDPenReg")
#' 
#' dataset <- simul(50, 10000, 0.4, 10, 50, matrix(c(0.1, 0.8, 0.02, 0.02), nrow = 2))
#' result <- HDlars(dataset$data, dataset$response)
#' 
#' # plot coefficient path
#' plot(result)
#' 
#' # get all coefficients
#' coefficient <- listToMatrix(result)
#' 
#'
#' @seealso \code{\link{HDlars}} \code{\link{HDcvlars}}
#'
#' @keywords package
NULL

Try the HDPenReg package in your browser

Any scripts or data that you put into this service are public.

HDPenReg documentation built on March 31, 2023, 9:31 p.m.