predict.bess.one {BeSS} | R Documentation |
make predictions from a "bess.one" object.
Description
Similar to other predict methods, which returns predictions from a fitted "bess.one
" object.
Usage
## S3 method for class 'bess.one'
predict(object, newdata, ...)
Arguments
object |
Output from the |
newdata |
New data used for prediction. |
... |
Additional arguments affecting the predictions produced. |
Value
The object returned depends on the types of family.
Author(s)
Canhong Wen, Aijun Zhang, Shijie Quan, and Xueqin Wang.
References
Wen, C., Zhang, A., Quan, S. and Wang, X. (2020). BeSS: An R Package for Best Subset Selection in Linear, Logistic and Cox Proportional Hazards Models, Journal of Statistical Software, Vol. 94(4). doi:10.18637/jss.v094.i04.
See Also
Examples
data <- gen.data(500, 20, family = "gaussian", 10, 0.2, 1)
fit <- bess.one(data$x, data$y, s = 10, family = "gaussian")
pred <- predict(fit, newdata = data$x)
[Package BeSS version 2.0.4 Index]