predict.sqrtlasso: Prediction for an object with S3 class '"sqrtlasso"'

Description Usage Arguments Details Value Author(s) See Also

View source: R/picasso.sqrtlasso.R

Description

Predicting responses of the given design data.

Usage

1
2
## S3 method for class 'sqrtlasso'
predict(object, newdata, lambda.idx = c(1:3), Y.pred.idx = c(1:5), ...)

Arguments

object

An object with S3 class "sqrtlasso"

newdata

An optional data frame in which to look for variables with which to predict. If omitted, the traning data of the are used.

lambda.idx

The indices of the regularizaiton parameters in the solution path to be displayed. The default values are c(1:3).

Y.pred.idx

The indices of the predicted response vectors in the solution path to be displayed. The default values are c(1:5).

...

Arguments to be passed to methods.

Details

predict.sqrtlasso produces predicted values of the responses of the newdata from the estimated beta values in the object, i.e.

\hat{Y} = \hat{β}_0 + X_{new} \hat{β}.


Value

Y.pred

The predicted response vectors based on the estimated models.

Author(s)

Jason Ge, Xingguo Li, Mengdi Wang, Tong Zhang, Han Liu and Tuo Zhao
Maintainer: Jason Ge <jiange@princeton.edu>

See Also

picasso and picasso-package.


picasso documentation built on May 1, 2019, 6:28 p.m.