predict.lmclv: prediction for lmCLV models.

View source: R/predict.lmclv.R

predict.lmclvR 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 lmclv

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).


ClustVarLV documentation built on May 28, 2022, 5:05 p.m.