predict.FuncompCGL: make predictions from a "FuncompCGL" object

Description Usage Arguments Details Value

Description

predicts fitted values and class labels from a fitted FuncompCGL object.

Usage

1
2
## S3 method for class 'FuncompCGL'
predict(object, newx, s = NULL, ...)

Arguments

object

fitted FuncompCGL object.

newx

matrix of new values for x at which predictions are to be made. Must be a matrix.

s

value(s) of the penalty parameter lam at which predictions are required. Default is the entire sequence used to create the model.

...

Not used. Other arguments to predict.

Details

s is the new vector at which predictions are requested. If s is not in the lambda sequence used for fitting the model, the predict function will use linear interpolation to make predictions. The new values are interpolated using a fraction of predicted values from both left and right lam indices.

Value

prediction values at the requested values for s.


Zhe-Research/compReg documentation built on May 28, 2019, 8:38 a.m.