predict.mlpcr {fdasrvf} | R Documentation |
Elastic Prediction for functional multinomial logistic PCR Model
Description
This function performs prediction from an elastic multinomial logistic fPCR regression model with phase-variability
Usage
## S3 method for class 'mlpcr'
predict(object, newdata = NULL, y = NULL, ...)
Arguments
object |
Object of class inheriting from "elastic.pcr.regression" |
newdata |
An optional matrix in which to look for variables with which to predict. If omitted, the fitted values are used. |
y |
An optional vector of labels to calculate PC. If omitted, PC is NULL |
... |
additional arguments affecting the predictions produced |
Value
Returns a list containing
y_pred |
predicted probabilities of the class of newdata |
y_labels |
class labels of newdata |
PC |
probability of classification per class |
PC.comb |
total probability of classification |
References
J. D. Tucker, J. R. Lewis, and A. Srivastava, “Elastic Functional Principal Component Regression,” Statistical Analysis and Data Mining, 10.1002/sam.11399, 2018.
[Package fdasrvf version 2.3.1 Index]