predict.bess: make predictions from a "bess" object.
Description
Similar to other predict methods, which returns predictions from a fitted "bess" object.
Usage
# S3 method for bess
predict(object, newdata, type = c("ALL", "opt", "AIC", "BIC", "EBIC"),...)
Value
The object returned depends on the types of family.
Arguments
object
Output from the bess function or the bess.one function.
newdata
New data used for prediction.
type
Types of coefficients returned. type = "AIC" cooresponds to the predictor with optimal AIC value; type = "BIC" cooresponds to the predictor with optimal BIC value;
type = "EBIC" cooresponds to the predictor with optimal EBIC value; type = "ALL" cooresponds to all predictors in the bess object; type = "opt" cooresponds to predictors in best model. Default is ALL.
...
Additional arguments affecting the predictions produced.
Author
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.