diff options
| author | Gertjan van den Burg <burg@ese.eur.nl> | 2017-01-25 14:03:38 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <burg@ese.eur.nl> | 2017-01-25 14:03:38 +0100 |
| commit | 96e7bc6fdf292c7f73e599dae0b7957161e15212 (patch) | |
| tree | 1bedb98795b657ce51be2a6a79da7fe69435b00a /R/sparsestep-package.R | |
| parent | Add author and reference to each public method documentation (diff) | |
| download | sparsestep-96e7bc6fdf292c7f73e599dae0b7957161e15212.tar.gz sparsestep-96e7bc6fdf292c7f73e599dae0b7957161e15212.zip | |
Various documentation fixes
Diffstat (limited to 'R/sparsestep-package.R')
| -rw-r--r-- | R/sparsestep-package.R | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/R/sparsestep-package.R b/R/sparsestep-package.R index c1c5361..97fcd5b 100644 --- a/R/sparsestep-package.R +++ b/R/sparsestep-package.R @@ -38,6 +38,16 @@ #' arXiv preprint arXiv:1701.06967 [stat.ME]. #' URL \url{https://arxiv.org/abs/1701.06967}. #' +#' @examples +#' x <- matrix(rnorm(100*20), 100, 20) +#' y <- rnorm(100) +#' fit <- sparsestep(x, y) +#' plot(fit) +#' fits <- path.sparsestep(x, y) +#' plot(fits) +#' x2 <- matrix(rnorm(50*20), 50, 20) +#' y2 <- predict(fits, x2) +#' #' @name sparsestep-package #' @docType package #' @import Matrix |
