Helper function that matches the output to the specified newdata
If Cluster is not provided, the prediction is outputted in long format per cluster, resulting in a longer data.frame than the newdata input
transformPredict(pred, model, newdata) ## S4 method for signature ''NULL',lcModel' transformPredict(pred, model, newdata) ## S4 method for signature 'vector,lcModel' transformPredict(pred, model, newdata) ## S4 method for signature 'matrix,lcModel' transformPredict(pred, model, newdata) ## S4 method for signature 'data.frame,lcModel' transformPredict(pred, model, newdata)
pred |
The prediction object |
model |
The model for which the prediction is made. |
newdata |
A |
A data.frame with the predictions, or a list of cluster-specific prediction frames
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.