View source: R/predict.lmclv.R

predict.lmclv | R Documentation |

To get the predicted response values based on lmCLV model.

## S3 method for class 'lmclv' predict(object, newdata, shrinkp, ...)

`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 |

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.