predict.logit {picasso} | R Documentation |
"logit"
Predicting responses of the given design data.
## S3 method for class 'logit'
predict(object, newdata, lambda.idx = c(1:3), p.pred.idx = c(1:5), ...)
object |
An object with S3 class |
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 |
p.pred.idx |
The indices of the predicted response vectors in the solution path to be displayed. The default values are |
... |
Arguments to be passed to methods. |
predict.logit
produces predicted values of the responses of the newdata
from the estimated beta
values in the object
, i.e.
\hat{p} = \frac{e^{\hat{\beta}_0 + X_{new} \hat{\beta}}}{1+e^{\hat{\beta}_0 + X_{new} \hat{\beta}}}.
p.pred |
The predicted response vectors based on the estimated models. |
Jason Ge, Xingguo Li, Mengdi Wang, Tong Zhang, Han Liu and Tuo Zhao
Maintainer: Jason Ge <jiange@princeton.edu>
picasso
and picasso-package
.