diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2016-02-10 22:31:02 -0500 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2016-02-10 22:31:02 -0500 |
| commit | dc4814a034040502e0ebe28f1baf22af6635b86d (patch) | |
| tree | 78a318ff4c8ada2f5bf439b431bb115221b90856 /man/predict.sparsestep.Rd | |
| parent | added main package docs to git (diff) | |
| download | sparsestep-dc4814a034040502e0ebe28f1baf22af6635b86d.tar.gz sparsestep-dc4814a034040502e0ebe28f1baf22af6635b86d.zip | |
add docs to git
Diffstat (limited to 'man/predict.sparsestep.Rd')
| -rw-r--r-- | man/predict.sparsestep.Rd | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/man/predict.sparsestep.Rd b/man/predict.sparsestep.Rd new file mode 100644 index 0000000..74abfaf --- /dev/null +++ b/man/predict.sparsestep.Rd @@ -0,0 +1,31 @@ +% Generated by roxygen2 (4.1.1): do not edit by hand +% Please edit documentation in R/predict.sparsestep.R +\name{predict.sparsestep} +\alias{predict} +\alias{predict.sparsestep} +\title{Make predictions from a SparseStep model} +\usage{ +\method{predict}{sparsestep}(object, newx, ...) +} +\arguments{ +\item{object}{Fitted \code{sparsestep} object} + +\item{newx}{Matrix of new values for \code{x} at which predictions are to +be made.} + +\item{\dots}{further argument are ignored} +} +\value{ +a matrix of numerical predictions of size nobs x nlambda +} +\description{ +Predicts the outcome variable for the SparseStep model for +each value of lambda supplied to the model. +} +\examples{ +x <- matrix(rnorm(100*20), 100, 20) +y <- rnorm(100) +fit <- sparsestep(x, y) +yhat <- predict(fit, x) +} + |
