predict.lmclv {ClustVarLV} | R Documentation |
prediction for lmCLV models.
Description
To get the predicted response values based on lmCLV model.
Usage
## S3 method for class 'lmclv'
predict(object, newdata, shrinkp, ...)
Arguments
object |
: result of class |
newdata |
: Data frame of observations for which to make predictions |
shrinkp |
: shrinkage parameter. |
... |
: further arguments passed to or from other methods |
Value
a matrix of the predicted values,
each column with an increasing number of CLV component included
the first column being for the null model
if the response if a binary factor, two additional matrices are provided :
the probabilities of belonging to class 1 and the response values (0 or 1).
[Package ClustVarLV version 2.1.1 Index]