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

Description Usage Arguments Details Value

Description

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

Usage

1
2
## S3 method for class 'compCL'
predict(object, Znew, Zcnew = NULL, s = NULL, ...)

Arguments

object

fitted compCL object.

Znew, Zcnew

Znew is the matrix of new values for log composition and Zcnew is the matrix for confounding matrix. Joint of Znew and Zcnew is the design matrix at which predictions are to be made. Default value for Zcnew is NULL.

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.


jiji6454/Rpac_compReg documentation built on May 31, 2019, 5:01 a.m.