Skip to content

Commit

Permalink
Polish 'Gauss_data'
Browse files Browse the repository at this point in the history
- supp --> support
  • Loading branch information
jasinmachkour committed Jun 13, 2022
1 parent 640a3df commit 8b1f47a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions R/Gauss_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
#' and p = 100 variables (predictors), and a sparse parameter vector beta
#' with associated support vector.
#'
#' @format A list containing a matrix X and vectors y, beta, and supp:
#' @format A list containing a matrix X and vectors y, beta, and support:
#' \describe{
#' \item{X}{Predictor matrix, n = 50, p = 100.}
#' \item{y}{Response vector.}
#' \item{beta}{Parameter vector.}
#' \item{supp}{Support vector.}
#' \item{support}{Support vector.}
#' }
#'
#' @importFrom stats rnorm
Expand All @@ -21,12 +21,12 @@
#' p <- 100
#' X <- matrix(stats::rnorm(n * p), nrow = n, ncol = p)
#' beta <- c(rep(5, times = 3), rep(0, times = 97))
#' supp <- beta > 0
#' support <- beta > 0
#' y <- X %*% beta + stats::rnorm(n)
#' Gauss_data <- list(
#' X = X,
#' y = y,
#' beta = beta,
#' supp = supp
#' support = support
#' )
"Gauss_data"
Binary file modified data/Gauss_data.rda
Binary file not shown.
8 changes: 4 additions & 4 deletions man/Gauss_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b1f47a

Please sign in to comment.